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 SWF files. To use the Control Shockwave or Flash action:

  1. Select Insert > Media > Shockwave or Insert > Media > Flash to insert a Shockwave or Flash SWF file, respectively.
  2. Select Window > Properties and enter a name for the movie in the upper-left text box (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 SWF file. 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 select Control Shockwave or Flash from the Actions pop-up menu.

    A parameters dialog box appears.

  6. Select a movie from the Movie pop-up menu.

    Dreamweaver automatically lists the names of all Shockwave and Flash SWF files in the current document. (Specifically, Dreamweaver lists movies with filenames ending in .dcr, .dir, .swf, or .spl that are in object or embed tags.)

  7. Select whether 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, select 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.

Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Inserting and Formatting Text
Adding Audio, Video, and Interactive Elements
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly