Dynamic Line Based On Mouse Cursor Using Flash And Action Script
This Flash script will draw a line dynamically from a point to current mouse cursor position. The script will redraw the line as you move your current mouse cursor position.
Preview
Source Code
[as3]//By : Isusx’s Programming Corner
//URL : http://isusx.com/
this.onEnterFrame = function(){
this.clear();
this.lineStyle(1,0,100);
this.moveTo(5,5);
this.lineTo(_xmouse,_ymouse);
}
[/as3]
Download
Click here to download the source code
Copyright Note
This script is free to use and can be modified as you wish.
Related Links
Flash Documentation, Guide and Complete Reference
Related Article
Categories: Action Script action, Action Script, actionscript, animate, animation, as, clip, code, color, cs, cursoe, flash, line, mouse, mouse move, move, movie, movie clip, pointer, script




