# Stopping mouse trail @ Loading page

**URL:** https://forum.kirupa.com/t/stopping-mouse-trail-loading-page/242833
**Category:** Uncategorized
**Created:** [October 30, 2007, 8:25pm UTC](https://forum.kirupa.com/t/stopping-mouse-trail-loading-page/242833 "2007-10-30T20:25:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![goflashgo](https://avatars.discourse-cdn.com/v4/letter/g/b3f665/32.png) [@goflashgo](https://forum.kirupa.com/u/goflashgo)
#### Post date: [October 30, 2007, 8:25pm UTC](https://forum.kirupa.com/t/stopping-mouse-trail-loading-page/242833/1 "2007-10-30T20:25:13Z")

</div>

Hi everyone!!!

I’m kind of a new to flash and working on my first webpage, the problem that I have is that i’m adding a mouse trail (took the example from KIRUPA) to my site but I would like it to stop before loading my site…any idea on how to stop it. I keep using the stop(); action but nothing…HELP!!!

Thanks a bunch!!!:3ye:

Text = “My new site!!!”;  
letters = Text.split("");  
letterformat = new TextFormat();  
letterformat.font = “Arial black”;  
letterformat.align = “center”;  
letterformat.size = “12”;  
spacing = 8;  
speed = 2;  
for (var LTR = 0; LTR\<letters.length; LTR++) {  
mc = \_root.createEmptyMovieClip(LTR+“l”, LTR);  
mc.createTextField(letters[LTR]+“t”, LTR, LTR\*spacing, 10, 20, 20);  
with (mc[letters[LTR]+“t”]) {  
text = letters[LTR];  
setTextFormat(letterformat);  
selectable = false;  
}  
if (LTR) {  
mc.prevClip = \_root[(LTR-1)+“l”];  
mc.onEnterFrame = function() {  
this.\_x += (this.prevClip.\_x-this.\_x+5)/speed;  
this.\_y += (this.prevClip.\_y-this.\_y)/speed;  
};  
} else {  
mc.onEnterFrame = function() {  
this.\_x += (\_root.\_xmouse-this.\_x+10)/speed;  
this.\_y += (\_root.\_ymouse-this.\_y)/speed;  
};  
}  
}
