Another truly useless code from me. Makes something follow the path of the mouse. Click to increase the amount of time between the mouse movement and the ball movement.
i = 2;
BREAK = 10;
_root.createEmptyMovieClip("ball", 0);
with (ball) {
lineStyle(10, 0xFF0000, 100);
lineTo(.2, 0);
}
onEnterFrame = function () {
BREAK -= 1;
if (BREAK == 0) {
j = 2;
}
_root.createEmptyMovieClip("POINT"+i, i);
_root["POINT"+i].lineStyle(5, 0x000000, 0);
_root["POINT"+i].lineTo(.2, 0);
_root["POINT"+i]._x = _xmouse;
_root["POINT"+i]._y = _ymouse;
i++;
ball._x = _root["POINT"+j]._x;
ball._y = _root["POINT"+j]._y;
j++;
};
onMouseDown = function () {
j-=5
savei = i;
while (i>2) {
unloadMovie(_root["POINT"+i]);
i--;
}
if (i<=2) {
i = savei;
}
};
[URL=“http://img364.imageshack.us/my.php?image=randommover4we.swf”]