# Mouse trail

**URL:** <https://forum.kirupa.com/t/mouse-trail/94658>\
**Category:** Uncategorized\
**Created:** [November 15, 2003, 1:54am UTC](https://forum.kirupa.com/t/mouse-trail/94658 "2003-11-15T01:54:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![juice\_monkey](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@juice\_monkey](https://forum.kirupa.com/u/juice_monkey)\
**Post date:** [November 15, 2003, 1:54am UTC](https://forum.kirupa.com/t/mouse-trail/94658/1 "2003-11-15T01:54:05Z")

</div>

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);  
}  
}
