Create transparent backgrounds in a SWF file

The background color (Stage color) of a SWF file can be set to transparent. The background color or image of the HTML page that contains the SWF file shows through. This technique allows layering of SWF content with DHTML (Dynamic HTML) content.

Not every web browser handles transparency in the same way. Be sure to test your SWF file in all browsers that you want to enable your audience to use. Most Linux browsers do not support Animate transparency. This table lists several browsers that support transparency.

Using the Publish Settings in Animate

The HTML for a SWF file can be created using the Publish Settings feature in Animate. The Publish Settings dialog box provides an option to affect the WMODE setting. The options selected in the Publish Settings are added to the HTML source code automatically.

  1. Choose File > Publish Settings. Make sure that HTML is selected.
  2. Select HTML.
  3. Choose Transparent Windowless from the Window Mode menu to make the SWF file's background disappear in browsers that support this feature.
  4. Publish the document.

This video shows how to perform these steps in Animate:

Using the Properties panel in Dreamweaver

Follow the steps below, and Dreamweaver inserts the correct HTML code automatically.

  1. In Dreamweaver, insert the SWF file into an HTML page.
  2. Select the SWF file in the Design View.
  3. In the Properties panel, choose Parameters.
  4. For the Parameter, enter "wmode" (without quotes). For the Value, enter "transparent."
  5. Save the document. The HTML page is complete.

This video shows how to perform these steps in Dreamweaver:

Editing the HTML code manually

To edit an existing HTML page, add the WMODE parameters to the HTML code.

Add the following parameter to the OBJECT tag:

<param name="wmode" value="transparent">

For more information about editing HTML tags manually for SWF content, see Object Tag Syntax

 Adobe

Получете помощ по-бързо и по-лесно

Нов потребител?