ActionScript Text Animation

How do I get the text of the stage after it has completed its animation?
thanks

Welcome to Kirupa tttrent :slight_smile:

Could you be a little more specific about how you have set things up? Or post a fla?

Depends on how you did the effect. If you’ve attached all your letters inside a container clip, all you have to do is remove that clip :slight_smile:

I did exactly as per the AS Text Animation tutorial and it works. But, after its finished I want to get the text off the stage.
In the last frame, the AS is as follows:

if (ii <= nLength){
gotoAndPlay(3)
}else{
stop()
}

Do I need to add something here?

Thanks.

For instance, you could do

// at the beginning of the code, before the loop:
myLetters = [] ;

// inside the loop, you keep a reference to your clip
var letter = char.duplicateMovieClip ("char"+ii, ii);
myLetters.push(letter) ;

// Then when you want to remove everything:
for (var clip in myLetters) { myLetters[clip].removeMovieClip() ;}

pom :slight_smile:

I modified the ActionScript for the last frame to:

if (ii <= nLength){
gotoAndPlay(3)
}else{
stop()
char.removeMovieClip()
}

but, the movie clip still remains on the stage.