What is the gotoAndPlay action?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

What is the gotoAndPlay action?

Rating:

The gotoAndPlay action sends the playhead directly to the specified frame of the specified scene and then executes a play action. When no scene is specified, the playhead moves to the specified frame of the current scene.

The syntax of using the gotoAndPlay action is as follows:

gotoAndPlay(scene, frame);

Where scene is a string that specifies the name of the scene where a user wants to go. It is optional to specify a scene.

Frame is a number of the frame to which a user wants to go. It also can be a string that represents the frame label.

For example:

The following code is assigned to a button:

on (release){
gotoAndPlay(53);
}


The above code sends the playhead to the Frame 53 in the current scene, and plays the movie from that frame when a user releases the button.


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.