I am using Adobe Flash CS6 and ActionScript 2.0
I have a button that takes me to a frame that contains a movie clip. I using the following code to do this:
Obviously, I have labeled that frame as "PongTL".
Once there, I have a button labeled "Restart" that will restart the movie at frame 1 each time it is pressed. I am using the following code to do this:
Obviously, I have changed the instance name of the movie clip to "Pong".
Here is the problem.
- When I click on the "Pong" button, it takes me to the appropriate frame and plays the movie clip.
- When I click on the "Restart" button, it re-runs the movie clip as it should.
- However, when I click on the "Pong" button a second time, it does nothing at all.
How do I make the "Pong" button gotoAndPlay the "PongTL" frame AND
act like the "Reset" button as well.