public class Main extends Sprite { public function Main() { var shape:Shape = new Shape(); shape.graphics.beginFill(0x00ff00, 1.0); shape.graphics.drawRect(10, 10, 50, 50); shape.graphics.endFill(); addChild(shape); } } }
Related Scripts with Example Source Code in same category :