Flash Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsWeb DesignFlash Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 5th, 2013, 01:47 PM
justasiam justasiam is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2009
Posts: 11 justasiam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 38 sec
Reputation Power: 0
Button is Not Starting the Movie Over Again (AS2)

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:

Code:
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:

Code:
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.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignFlash Development > Button is Not Starting the Movie Over Again (AS2)


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap