Insert and play a Flash file

Insert and play a Flash file

Next, you’ll insert a Flash file that plays a photographic slide show of Cafe Townsend’s featured food items. The Flash file you’ll insert is a flexible messaging area--or FMA--file. An FMA is a common type of Flash application that displays an informational message to the audience. The message can change based on the needs of the business. For example, if Cafe Townsend is holding a special event, the FMA could easily change (without affecting the rest of the web page) to display information about the event, instead of featured food items.

To insert the Flash FMA file, you need to insert HTML code that embeds the file in the Dreamweaver page. The easiest way to do this is to insert the SWF file (the exported Flash Movie file) into the page. When you insert a SWF file in Dreamweaver, Dreamweaver writes all of the necessary Flash HTML code for you.

  1. With the index.html page open in the Dreamweaver Document window, click once inside the second row of the first table.

    This is the table row immediately below the banner graphic you inserted in the previous section.

  2. In the Property inspector (Window > Properties), select Center from the Horz pop-up menu, and select Middle from the Vert pop-up menu.

    This places the contents of the table cell in the middle of the cell.

    This is a picture of the feature being described.

  3. Select Insert > Media > Flash.

    In the Select File dialog box, browse to the flash_fma.swf file (it’s in the cafe_townsend root folder of your site), select the file, and click OK.

    If the Object Tag Accessibility Attributes dialog box appears, click OK.

    This is a picture of the feature being described.

    A Flash content placeholder, rather than a scene from the FMA itself, appears in the Document window. This is because the HTML code is "pointing" to the SWF file flash_fma.swf. When a user loads the index.html page, the browser plays the SWF file.

  1. The Flash content placeholder should remain selected after you insert the SWF file, as long as you don’t click anywhere else on the page.

    If it’s not selected, select the Flash content placeholder by clicking it.

  2. In the Property inspector (Window > Properties), click Play.

    This is a picture of the feature being described.

    Dreamweaver plays the Flash file in the Document window, showing you what site visitors will see when they view the page in a browser.

    This is a picture of the feature being described.

  3. In the Property inspector, click Stop to stop playing the Flash file.
  4. Save the page.

Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly