Creating Interactive Movies > Using basic actions for navigation and interaction > Jumping to a frame or scene
Jumping to a frame or sceneTo jump to a specific frame or scene in the movie, you use the Go To action. When the movie jumps to a frame, you can play the movie from the new frame (the default) or stop at the frame. The movie can also jump to a scene and play a specified frame or the first frame of the next or previous scene.
To jump to a frame or scene:
1 | Select the frame, button instance, or movie clip instance to which you will assign the action. |
2 | Choose Window > Actions to display the Actions panel. |
3 | In the Toolbox list, click the Basic Actions category to display the basic actions, and select the Go To action. |
Flash inserts the Go To and Play action in the Actions list. | |
4 | To keep playing the movie after the jump, leave the Go To and Play option (the default) selected in the Parameters pane. To stop the movie at a specified frame, deselect Go To and Play. The action changes to Go To and Stop. |
5 | In the Scene pop-up menu in the Parameters pane, specify the destination scene: Current or Named Scene to specify a frame within the scene, or Next or Previous to have the movie jump to the first frame of the scene. |
6 | In the Type pop-up menu in the Parameters pane, choose a destination frame: |
![]() |
Next or Previous Frame. |
![]() |
Frame Number, Frame Label, or Expression allow you to specify a frame. Expressions are any part of a statement that produces a value, such as 1+1.
![]() |
7 | If you chose Frame Number, Frame Label, or Expression in step 6, for Frame, enter the frame by number, label, or an expression that evaluates to a frame number or label. |
The following statement indicates the frame that is five frames ahead of the frame that contains the action: | |
gotoAndStop(_currentframe + 5); |
|
For information on writing expressions, see ActionScript Help. | |
![]() |