Forked from: takaiw's forked from: flash on 2009-11-4 diff:6 forked from: forked from: flash on 2009-11-4 takaiw forked:0favorite:0lines:14license : MIT License modified : 2009-11-04 00:51:08 Embed Tweet // forked from takaiw's forked from: flash on 2009-11-4 // forked from takaiw's flash on 2009-11-4 package { import flash.display.*; public class FlashTest extends Sprite { public function FlashTest() { var sp:Sprite = new Sprite(); var g:Graphics = sp.graphics; g.beginFill(0xff0000,1); g.drawRect(0,0,100,100); this.addChild(sp); sp.x = NaN; sp.y = 200; } } } Code Fullscreen Preview Fullscreen graphics drawRect beginFill addChild Sprite