PDA

View Full Version : text remnants


mila
07-17-2006, 07:35 AM
hey guys
i'm sort of new to the forum and to flash and i hope i'm in the right place. i could use a little help i'm trying to build a simple site and i have use this tutorial

http://www.actionscript.org/tutorials/intermediate/animating_text_with_actionscript/index.shtml.

to put in some text (i have stoped the text so it does not deasapear like in the tut..).
the problem is that when i press another button (gotoAndplay()) it stops the text animation and plays the right frame but the text that have already been writen is still there. how can i make sure that right animation plays with out any text remnants ?

thanks in advance
mila

sophistikat
07-17-2006, 03:27 PM
welcome to AS[org] :)
i'm not sure if completly understand you; can you post your .fla?

mila
07-17-2006, 04:01 PM
hey sophistikat

how are you ? thank you for helping.
i have attached rough example of what i mean.
as you can see if you try to press button 2 after pressing button 1 it plays the correct frame but text is stil there. why/what am i doing wrong?
thanks

sophistikat
07-17-2006, 04:52 PM
that happens because when you use duplicateMovieClip or attachMovie or createEmptyMovieClip the new movieclip is not creating inside the frame but above the entire timeline. think of it like earth and outer space; during the day time if we're on the east cost we both can see the sun but we can't see our cities. what you need to do when you go to frame 25 is too remove the movieclips you creating in outer space with the following codefor (mc in this) {
if (typeof(this[mc]) == 'movieclip') {
this[mc].removeMovieClip();
}
}... and that will solve your problem

mila
07-17-2006, 05:18 PM
i just tryed it and it's exactly what i need. thank you so much. your explanation was wonderful it did look like the text was above evrything and now i get it. thanks again and have a great day :)