hey everybody. im trying to make a mouse trail thingy for my website and wat im tryin to do is there’s gonna be a bomb and whenever someone clicks on a hyperlink there’s an explosion, but i cant seem to get the code to work. the original code works but when i added the MovieClip.onMouseDown i stopped working.
here’s the code:
onClipEvent (load) {
_x = 0;
_y = 0;
speed = 5;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}
onClipEvent (enterFrame) {
MovieClip.onMouseDown = function() {
gotoAndStop(2);
}
}