curveTo
package {
import flash.display.Sprite;
import flash.display.Stage;
import flash.display.Graphics;
import flash.events.MouseEvent;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var n:int=0;
var en:int=0;
//
graphics.lineStyle(1,0x000000);
graphics.moveTo(stage.stageWidth/2, stage.stageHeight/2);
stage.addEventListener(MouseEvent.MOUSE_MOVE, mover);
}
private function mover(event:MouseEvent):void{
graphics.curveTo(stage.stageWidth/2, stage.stageHeight/2, event.stageX, event.stageY);
}
}
}