• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 19. ActionScript: Add Interactiv... > Control the document with a stop() a...

Control the document with a stop() action

When you test or publish a Flash document that contains more than one scene, by default the scenes play linearly, in the order in which they appear in the Scenes panel. You’ll use a stop() action for Scene 1 so that the playhead in the Timeline stops at Frame 1 of Scene 1.

1.
In the main Timeline for Scene 1, add a new layer and name it Actions.

2.
Click Frame 1 of the Actions layer.

In the Script pane of the Actions panel (Window > Actions), type the following comment followed by the script that stops the playhead on the frame:

// Stops the playhead at Frame 1.
stop();


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint