What is the gotoAndPlay action?

January 2nd, 2008 by uCertify Leave a reply »

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.

Pass Adobe ace-flash - ACE Flash Download free practice test for 9A0-311 Macromedia Flash Professional exam.
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
  • Share/Bookmark
Advertisement

Leave a Reply

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