/* Open a new FLash file (ActionScript 3.0). Select TimeLine --> Top Layer --> Frame 1 Select Window --> Actions (F9) Copy and paste this snippet Observe the Stage */ // We create a rectangle and circle using // the shape class. var myShape:Shape = new Shape(); myShape.graphics.lineStyle(2); myShape.graphics.beginFill(0xFFDEAD, 1); myShape.graphics.drawCircle(150, 200, 50); myShape.graphics.drawRect(125, 10, 150, 75); addChild(myShape); // We create a rectangle using the MovieClip class. var otherShape:MovieClip = new MovieClip(); otherShape.graphics.lineStyle(1, 0x00FF00); otherShape.graphics.beginFill(0xFFDEAD); otherShape.graphics.drawRect(300,100,100,100); otherShape.graphics.endFill(); addChild(otherShape);