Behaviors > Using the behavior actions that come with Dreamweaver > Control Shockwave or Flash

 

Control Shockwave or Flash

Use the Control Shockwave or Flash action to play, stop, rewind, or go to a frame in a Macromedia Shockwave or Macromedia Flash movie.

To use the Control Shockwave or Flash action:

1 Choose Insert > Media > Shockwave or Insert > Media > Flash to insert a Shockwave or Flash movie, respectively.
2 Choose Window > Properties and enter a name for the movie in the upper leftmost field (next to the Shockwave or Flash icon). You must name the movie to control it with the Control Shockwave or Flash action.
3 Select the item you want to use to control the Shockwave or Flash movie. For example, if you have an image of a "Play" button that will be used to make the movie play, select that image.
4 Open the Behaviors panel (Window > Behaviors).
5 Click the Plus (+) button and choose Control Shockwave or Flash from the Actions pop-up menu.
A parameters dialog box appears.
6 Choose a movie from the Movie pop-up menu.
Dreamweaver automatically lists the names of all Shockwave and Flash movies in the current document. (Specifically, Dreamweaver lists movies with file names ending in .dcr, .dir, .swf, or .spl that are in object or embed tags.)
7 Choose to play, stop, rewind, or go to a frame in the movie. The Play option plays the movie starting from the frame where the action occurs.
8 Click OK.
9 Check that the default event is the one you want.
If it isn't, choose another event from the pop-up menu. If the events you want are not listed, change the target browser in the Show Events For submenu of the Events pop-up menu.