Buttons II

To target a single movie clip on your stage:

To add and configure a behavior:

1. Create a button and movie clips in your library.

a) the movie clips must have stop actions on the first and last frames

b) in most cases, the movie clip will have a blank keyframe as the first frame, so the content does not show immediately.

2. Drag a button and a movie clip onto the stage (DON’T FORGET: name the instance of the movie clip in the properties panel; avoid long names or starting the name with a numeral).

3. Select the button that users will click to trigger the behavior.

4. In the Behaviors panel (Window > Behaviors), click the Add (+) button and select Go to and Play from the Movieclip submenu.

5. In the dialog box that appears, select the movie clip that you want to control with the behavior. If prompted, enter a unique name for the instance of the movie clip you have selected.

If you plan to have more than one button controlling more than one movie clip:

1. For each button on the stage, you will need to determine what movie clip should appear and disappear when the button is used. In many cases you will want a button to clear other items on the stage before a new movie clip plays. In this situation, you will want to add:

“Go to and Stop”, with the mouse event set to “On Press” or every movie clip on the stage including the ones which will play On Release. This will clear, or reset other movie clips.

For the clip that should play be certain you have the behavior:
“Go to and Play”, with the mouse event set to “On Release”