package{ import flash.display.Sprite; import flash.display.Shape; 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); } } }