Flash Templates Tutorials - Goto Action
The goto action shifts the movie to the selected frame that is set in the command parameters. There are two types of goto actions:
?· gotoAndStop shifts the movie to specified frame and then stops the movie playback. gotoAndStop action is often used to create interface where user can click buttons to see different parts of the Flash movie.
?· gotoAndPlay action shifts from the current frame to the specified frame and plays it. Just as gotoAndStop, this action can be used to create toolbar-like interfaces that will display leading-in animations in addition to the individual sections of the movie content. Please note, that by default the gotoAndPlay action is selected from goto actions. To add gotoAndStop action you need to add the goto action and then switch the radio button from gotoAndPlay to gotoAndStop in the Actions panel.
Every goto action performs the move to the selected part of the Flash movie. When you set the goto parameters, you state the Scene first and then Frame number.
Being at some stage of the movie you can state the frame from other scene for the goto action, selecting respective scene from the Scene drop-down menu. The drop-down Scene menu contains all scenes of the movie and other values: current scene, next scene and previous scene.
Using Scene, Type and Frame fields in the Actions panel you can move to any frame at any movie scene.
You can state the frame that the movie will switch to in five ways. You can do this selecting the needed Type and Frame parameters. Once the Type value is selected you can enter the frame number or frame label depending on selected Type value.
?· Frame Number sets the frame the movie will go to based on the frame number. Frame that the movie starts at is assigned number 1. The frame numeration is through in Flash. Therefore, if the movie consists of two scenes, 25 frames each, and you will select 50 for the frame number, Flash will move to the last frame of the second scene.
?· Frame Label. You can assign labels to selected keyframes in the Label field of the Properties panel. If the label is assigned to the frame, you can set the label name for the goto action target. To do so, select the Frame Label in the Type field. Enter the label name in the Frame field or select it from the dropdown menu.
?· Expression. You can set the target frame with expression of the ActionScript that determines it. Expressions allow you to set dynamic values for the goto target frame.
?· Next Frame. You can set next frame as the target for your goto script. You can use Next Frame in a bundle with Previous Frame goto action to arrange slideshows where each of the series of continuous keyframes presents that content of one "slide".
?· Previous Frame selection lets you set the previous frame as the target frame for your goto action.