Drawing Lines
public function lineTo(x:Number, y:Number):void public function moveTo(x:Number, y:Number):void
function test_UIButton_OnClick(event1:MouseEvent):void { var spr:Sprite = new Sprite(); var canvas:Graphics = spr.graphics; // simplifies the code canvas.lineStyle(0); // must be set to draw a line canvas.beginFill(0xFF0000); // must be set to fill a circle canvas.drawCircle(100,100,60); canvas.endFill(); addChild(spr); // actually displays the graphic on stage canvas.lineTo(20,20); // just draw some lines canvas.lineTo(20,50); canvas.lineTo(40,60); }