flash »æͼAPI£ºÌ«¼«
Ç°¼¸ÌìÏëÆðÁËÒ»¸öͼ°¸£¬ÓÚÊÇÓÐÁËÒ»¸öÁé¸Ð£¬°Ñ±Ê¼Ç¼ÆðÀ´£¬µ«ÊÇÓöµ½Ò»Ð©ÎÊÌâ²»ÄÜʵÏÖµ½Ì«¼«Í¼µÄ»æÖÆ£¬Çë½ÌÎÒ´óѧµÄͬѧ£¬ËûÓÃc++ »æÖÆÒ»´ÎÎÒ¿´£¬ÖÕÓÚʵÏÖÁËÒ»¸öÌ«¼«Í¼µÄ»æÖÆ¡£¿ªÊ¼µÄʱºò£¬ÒÔÏÂÃæµÄͼ×÷Ϊ»æÖÆ£¬²ÉÈ¡¼¸¸öÔ²»æÖƾͿÉÒÔʵÏÖµ½£¬µ«ÊÇ·¢ÏÖÌî³äÑÕÉ«µÄʱºò³öÏÖÎÊÌ⣬²»µÃ²»µÃ¸Ä±äÒ»¸ö˼·£¬Í¬Ñ§µÄ½²½âÖ®ºó£¬ÔÀ´¼¼ÇɾÍÊÇÔÚ½«´óÔ²±ä³ÉÁ½±ßµÄÉÈÐΣ¬´ÓÕâ¸öµÃµ½Ò»¸öÆô·¢£¬ÔËÓÃÉÈÐλæÖƵõ½Ò»°ëµÄÔ²¡£ÄÇô½â¾öµ½Ìî³äͼÏñµÄÎÊÌâ¡£¹Ø¼üµØ·½ÊµÏÖµ½Ò»¸öÉÈÐΡ£Í¨¹ýApi»æÖÆ¡£µ«ÊÇas3 ×Ô´øAPI²¢Ã»ÓлæÖÆÉÈÐεķ½·¨£¬¾¹ýÍøÉϲéѯ×ÊÁϷḻ£¬Ë³ÊÖÇ£ÑòÐÞ¸ÄÁËһϡ£
³õʼµÄ˼·Ҫ֪µÀÔõÑù»æÖÆÒ»¸öÉÈÐΣºÎÒÃǼòµ¥Ð´ÁËһϣ¬ÊµÏÖµ½ÉÈÐεÄЧ¹û¾Í¿ÉÒÔ¡£
function pie(g:Graphics,startAngle:Number,endAngle:Number,radius:Number,color:uint):void
{
g.lineStyle(1);
g.moveTo(0,0);
g.beginFill(color);
for (var i:Number=startAngle; i<=endAngle; i++)
{
var angle:Number = i*Math.PI/180;
var pointX:Number=Math.cos(angle)*radius;
var pointY:Number=Math.sin(angle)*radius;
g.lineTo(pointX, pointY);
}
g.lineTo(0,0);
g.endFill();
}
ÀïÃæ²ÎÊýÓзֱðͼÐζÔÏ󣬿ªÊ¼½Ç£¬½áÊøµÄ½Ç¶È£¬°ë¾¶£¬ÑÕÉ«Ìî³äÖµ¡£ÕâÑù¾Í»ù±¾Äܹ»ÊµÏÖµ½ÎÒÃÇÔ¤Ï뵽Ч¹û¡£
ÕâÖÖͨ¹ýÃèµãµÄ·½Ê½À´ÊµÏÖÉÈÐÎЧ¹û¡£
ʵÏÖÍê³ÉÖ®ºó£¬ÎÒÃǼÌÐø°´ÏÂÃæµÄͼ°¸À´ÃèдԲ£¬Ò»¹²ÊÇ5¸öÔ²£¬×î´óµÄÔ²ÊÇÓÉÁ½¸öÉÈÐÎÍê³É£¬ÆäËû¼´Í¨¹ý»æͼapi drawCircl Ìî³ä¡£
Ìî³äÑÕÉ«µÄʱºò£¬¹Ø¼üÒ»µãÊǶÔÑÕÉ«´¦Àí£¬ÕâÑù²ÅÄÜʵÏÖÌ«¼«Í¼°¸¡£
Ì«¼«Í¼ÐÐÀࣺ
°´ÉÏÃæµÄ˼·ͼ½øÐлæÖÆ¡£
package
{
//»æÖÆÌ«¼«
import flash.display.Sprite;
import flash.events.*;
import flash.display.Graphics;
import flash.geom.Point;
public class TaiJi extends Sprite
{
private var shape:Sprite=new Sprite();
private var contain:Sprite=new Sprite();
private var shape2:Sprite=new Sprite();
private var shape3:Sprite=new Sprite();
private var R:int;//°ë¾¶
private var startX:Number=0;
private var startY:Number=0;
public function TaiJi(R:int)
{
this.R=R;
addChild(shape);
shape.x=startX;
shape.y=startY;
addChild(shape2);
addChild(sha
Ïà¹ØÎĵµ£º
ÈôËù²¥·ÅµÄflashÀïÓÐ×ÖÌåÂÒÂ루ÏÔʾΪ·½¿é£©£¬ÄÇô°´ÈçÏ·½·¨½â¾ö£º
1 ÔÚÖÕ¶ËÀïÊäÈësudo gedit /etc/fonts/conf.d/49-sansserif.confÈ»ºó»Ø³µ
2 ½«µ¹ÊýµÚËÄÐÐ <string>sans-serif</string> ¸ÄΪ <string>ÎÄȪæäÕýºÚ</string>
±£´æ¼´¿É£¬ÖØÆôfirefox£¬flashÂÒÂë½â¾öÁË ......
¼ÌÐø°ÑÉÏÃæµÄ×ÊÁϼǼһÏ£¬ÏñËØ»ÊǶÔÿһ¸öÏñËؽøÐвÙ×÷½øÐÐÖØ×飬¶øÕâЩ²Ù×÷¿ÉÒÔ¿´µ½Î»Í¼ÏñËزÙ×÷ÊÇ¿ÉÒԱ仯³öºÜ¶àÁîÈËÒâÏë²»µ½µÄЧ¹û¡£½ñÌ죬°ÑÔÚÍøÕ¾¿´µ½µÄһЩÎÄռǼһÏ£¬¹ØÓÚºÚ°×»ÏñËزÙ×÷¡£ÔÀíºÜ¼òµ¥£¬´ÓÒ»ÕÅͼƬ¿ÉÒÔ¿´µ½ÊÇÓÉÒ»¸ö¸öÏñËØ×é³É£¬¿ÉÒÔ¿´³ÉÊÇÒ»¸ö¸öϸСµÄ΢Á£¡£ÕâЩ΢Á£°üº¬ÁËһЩֵ£¬ÑÕÉ«Ö ......
¶î ÕâÁ½Ìì¼ÌÐøдÄǸö ³é½±³ÌÐò¡£¡£
ÏÈÊÇ Ð´ºÃÁË °´¼¸µÈ½± ¼¸¸öÈ赀 ½çÃæ¿ÉÒÔ³é³öÀ´Á˺ÅÂëÓÚÊÇÔÚÕÒÁËwinformµÄƤ·ô½çÃæ¡£»¹²»´í¡£¡£
¸ø assistantÑî¿´È»ºóÓÖ¸øÎÒ˵ û¹ö¶¯µÄЧ¹û ¿´ÆðÀ´²»ºÃ û³é½±µÄ´Ì¼¤¸Ð¡£
È»ºóÔÙµ½ÍøÉÏÕÒÁ˸ö ¹ö¶¯Ð§¹ûµÄ FLASH¡£¡£
½Ó×ÅÕÒÁËÒ»ÌìÖÕÓÚÖªµÀÁË FLASH µÄ±à³ÌÓïÑÔ ÈçºÎ¼òµ¥Ð޸ġ£¡£¡£ ......
×òÍíÏëÆðÁ˺ÜÏëÓûæͼAPI»æÖÆÒ»°Ñ½££¬Í»È»ÄÔº£ÓÖÏëÆðÁË·çÔƵ±Öн£Ê¥Ê¹ÓõēÍò½£¹é×Ú”ÕâЩÎäѧÕÐʽ£¬ÏëÏëÖ®ºó£¬ÓÚÊǺÃÎÞÁÄдÁËһϣ¬²»¹ý²»ÄÜ×öµ½Íò½£¹é×ÚµÄЧ¹û£¬¾ÍÊ¡È¥ÁËÒ»¸ö×Ö¡£ºÇºÇ£¬ºÜÏë°Ñѧ¹ýµÄ֪ʶ£¬°ÑÔÚ¿´µ½µÄÈںϵ½Í¼ÐαíÏÖÉÏ¡£ÕâÑù×öÆðÀ´flash »áÏԵøü¼ÓÓиöÐÔÒ»µã£¬¿ÉÄÜ¿´ÆðÀ´ÊÇÒ»ÖÖ×Ô ......