In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

curveTo

Get Adobe Flash player
by Abarrow 26 Aug 2010
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);
            
        }
    }
}