package { import flash.display.*; import flash.events.*; public class Main extends Sprite { public function Main( ) { stage.frameRate = 1; graphics.moveTo(stage.mouseX, stage.mouseY); stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveListener); } private function mouseMoveListener (e:MouseEvent):void { graphics.lineStyle(2, 0xFF0000); graphics.lineTo(e.stageX, e.stageY); } }}
Name (required)
email (will not be published) (required)
Website