![]() |
||
| ||
October 05, 2014 – gotoAndPlay Inside MovieClip AS 3.0
Some developers migrating to Action Script 3.0, may have problems with buttons inside Movie Clip, the example below is a very common problem when the statement gotoAndPlay is used inside a button that is inside a MovieClip.
The developer uses the following statement to go to some frame in the Main Timeline: gotoAndPlay(6); If the button was created direct in the frame, the above code will work of course, but if the button is inside a Movie Clip on the stage, the code will not work and you need to use the code below instead: MovieClip(parent).gotoAndPlay(6); I will put a image below to show you better, the entire scenario of this common problem: ![]() The number six is just an example number of the destination frame in the Main Timeline that we want to go, you need to put the number of your frame in this place instead. More Articles
|
Latest Games by PlayGB - View All
Play GB Blog – View All
![]() Other Free Games
|
|
Play GB – Flash Games
PlayGB also known as Play GB is a game development studio, focused in the development of free online games where you can play in your browser, you don't need to download or install anything to play a web game, the only requirement is: Flash Player. If you like to play free online flash games, you are in the right place, follow us to get always our latest releases.
|
||
© PlayGB - All rights reserved - About Us | Contact | Privacy Policy | CPMStar Sponsorship Code |