import flash.display.Sprite;
var bin:Sprite = new Sprite();
var cir:Sprite = new Sprite();
cir.graphics.beginFill(0x00ff00,1);
cir.graphics.drawCircle(0,0,30);
cir.graphics.endFill();
bin.graphics.beginFill(0xff0000,1);
bin.graphics.drawRoundRect(40,40,100,100,5,5);
bin.graphics.endFill();
addChild(bin);
bin.addChild(cir);
//這裏爲什麼在圓形方塊外面添加圓圈?addChild中的Actionscript問題
但我在「bin」精靈中添加了「cir」精靈。沒關係。 讓我知道,什麼是應用x,y pos內外的差異b/w? bin.graphics.drawRoundRect(40,40,100,100,5,5); // bin.graphics.drawRoundRect(0,0,100,100,5,5); bin.x = bin.y = 40; – Benny 2011-05-10 05:03:47