labs.insert-title.com

Line Following

Swishcripted line leading to the left and always following the cursor. SLightly on the experimental Swishscript side of thing, could be useful somewhere.

The Script

	
OnLoad() {
    ref=_root.createEmptyMovieClip("line",1);    
    ref.lineStyle(0,0xFFFFFF,0);
    ref.lineStyle(5,0x000000,100);    
}
OnEnterFrame(){
line.lineTo(_root._xmouse,_root._ymouse);
_root._X----;
}
}

The Download

Download swish file






Discussion

critical designs

Wow nice !! Also easy script, that`s super. Not a very large script that you have to studie first, but this one is easy to follow.

Thanks.!!

Cya around

Ian Hinckley

Here - less code. Same thing. No unnecessary movieclip OnLoad() { lineStyle(0,0xFFFFFF,0); lineStyle(5,0x000000,100); } OnEnterFrame(){ lineTo(_xmouse,_ymouse); _X-=2; }

Joe Maddalone

Ah - A man after my own heart. Thanks!

New comments are currently disabled, you can find me @joemaddalone Comments temporarily disabled for now, you can find me @joemaddalone