Mouse trail tutorial

I have been using the following tutorial on this site and wonder if anyone can let me know how I would remove the effect when the user clicks a button to move to another part of the site?

http://www.kirupa.com/developer/mx/mousetrailer.htm

thanks to all in advance!

You could use removeMovieClip();, or maybe making it:
[AS]
on (press) {
Text = “”
}
[/AS]

that should work i think

the section of code for creating the Movieclip is as follows:

for (var LTR = 0; LTR<letters.length; LTR++) {
mc = _root.createEmptyMovieClip(LTR+“l”, LTR);

I have been tying to use removeMovieClip(); but am unsure what should go in the brackets since all the movie clips are created using a loop.

They were created in a for loop using _root.createEmptyMovieClip(letters[L], L), so to remove them you use the same for loop with removeMovieClip:


for (var i=0; i<letters.length; i++) {
_root[letters*].removeMovieClip()
}

That’s all. I’ve attached an example FLA for you.

You’re a star!!

Thank you