0 Replies - 2062 Views - Last Post: 05 December 2013 - 12:48 PM

#1 CodeNubee  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 22
  • Joined: 28-March 13

Button is Not Starting the Movie Over Again (AS2)

Posted 05 December 2013 - 12:48 PM

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:

gotoAndPlay("PongTL");

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:

this.Pong.gotoAndPlay(1);

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.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1