CtrlZ
February 11, 2004, 11:21am
1
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!
system
February 11, 2004, 11:55am
2
You could use removeMovieClip();, or maybe making it:
[AS]
on (press) {
Text = “”
}
[/AS]
that should work i think
system
February 11, 2004, 12:04pm
3
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.
system
February 11, 2004, 2:40pm
4
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.