How to Add Flash Sound to a Web Page - dummies

By David Karlins, Doug Sahlin

After you publish your Flash sound as a SWF file, you’re ready to add it to your web page. Remember that this file is infinitesimally small, as in really, really tiny. No one will see the file, so you can tuck it in just about anywhere. Adding the file above the header section of the document is generally a good idea.

Honestly, who’s going to notice an extra pixel, especially when it’s the same color as the background?

These steps show you how to add the sound file:

  1. In Dreamweaver, open the web page to which you’ll add the sound.

  2. Position your cursor where you want to add the sound.

    You can put the sound anywhere that’s a blank space — say, above the header or below the fold (you know, the stuff you can’t see in the browser window and need to scroll to).

  3. Choose Insert→Media→SWF.

    The Select File dialog box appears.

  4. Select the soundtrack SWF file and then click OK.

    The Object Tag Accessibility Attributes dialog box appears. This information is used by visually challenged people using screen readers to access the page.

  5. Enter the desired information and click OK.

    Dreamweaver adds the soundtrack to the web page.

  6. Save the file and preview it in all browsers used by your target audience.

    The sound will start playing when the HTML document loads.