On my main stage I have a few Movieclips, which all start at a different frame position, and also end at a different frame position. So I put a keyframe to the Movieclips, after the animation is finished, and put a stop()
on it. After all animations are finished, the main stage also gets a stop()
and a replay button appears. Now if I click on the replay button, every movieclip should start again - of course. I have tried gotoAndPlay(1)
but the moviclips are not starting with that, only the mainstage (of course, i know that moviclips have their own timeline.. ) So how can I restart every animation with just the one click on the replay button?
Asked
Active
Viewed 554 times
1

Brigitte Fellner
- 245
- 2
- 4
- 14
1 Answers
1
In Flash, movieclips are running seperate from the Main Stage. In order to run all the movieclips, you should restart all the movieclips: Let's say the names of the movieclips are MovieClip1, MovieClip2 and MovieClip3.
on(release){
gotoAndPlay(1);
MovieClip1.gotoAndPlay(1);
MovieClip2.gotoAndPlay(1);
MovieClip3.gotoAndPlay(1);
}
Hope this will work.

Adnan
- 199
- 3
- 11
-
I have already tried that, but then I get an error: Accress of undefined property MovieClip1. (when MovieClip1 is the name of my MovieClip) – Brigitte Fellner Nov 18 '13 at 15:40
-
Did you typed the name in the textbox for the
? – Adnan Nov 18 '13 at 15:46