/* 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 */ // line width is 3 pixels, line color is Green. // The this operator is associating with the only object it knows, the stage. // This is not a great use of the this however. this.graphics.lineStyle(3, 0x00FF00); this.graphics.moveTo(100,200); this.graphics.lineTo(150,250); // curveTo from current to (ToX, ToY, anchorX, anchorY); this.graphics.curveTo(200,300,250,250); this.graphics.lineTo(300,200); this.graphics.drawRoundRect(40,40,320,270,25,25); // drawCircle(X, Y, radius); this.graphics.drawCircle(150,100,20); this.graphics.drawEllipse(180,150,40,70); this.graphics.beginFill(0x333333); this.graphics.drawCircle(250,100,20); // From Gary Rosenzweig's "ActionScript 3.0 Game Programming University."