var _spr:Sprite = new Sprite();
_spr.graphics.beginFill(0x0000ff, 1);
_spr.graphics.drawRect((stage.stageWidth - 100) / 2, (stage.stageHeight - 100) / 2, 100, 100);

this.addChild(_spr);




 - beginFill(Color, alpha);
 - drawRect(x, y, width, height);


'ActionScript3.0 > 기초' 카테고리의 다른 글

TimerEvent()  (0) 2010.03.19
Math.random(), TweenMax.DropShadowFilter  (0) 2010.02.09
mouseEnabled  (0) 2010.02.04
Split  (0) 2010.02.03
Object()  (0) 2010.02.03

+ Recent posts