Accessibility

TechNote

How to make a Flash movie with a transparent background

To view/add comments, you must enable JavaScript in your browser.

The background of a Flash movie can be set to transparent. This allows the background color or image of the HTML page that contains the Flash movie to show through and allows the layering of Flash content with DHTML content.

Publishing from Flash

The text below explains how to resolve this issue. Alternatively, you can view a video.

Play Video

The HTML for a Flash movie can be created using the Publish Settings feature in Flash. The Publish Settings dialog box provides an option to affect the WMODE setting. The options selected in the Publish Settings will be added to the HTML source code automatically:

  1. Choose File > Publish Settings. Select the HTML tab.
  2. Choose "Transparent" in the WMODE setting to make the Flash movie's background disappear in browsers which support this feature.
  3. Publish the document.
Using Dreamweaver

 

The text below explains how to resolve this issue. Alternatively, you can view a video.

Play Video

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

  1. In Dreamweaver, insert the Flash movie into an HTML page.
  2. Select the Flash movie 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.
Editing HTML code manually

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

  1. Add the following parameter to the OBJECT tag:
     <param name="wmode" value="transparent"> 
  2. Add the following parameter to the EMBED tag:
     wmode="transparent" 

Additional Information


For more details about Flash movies showing above DHTML layers, please refer to Flash content displays on top of all DHTML layers (TechNote tn_15523).

 

AlertThis content requires Flash

To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.

Download the free Flash Player now!

Get Adobe Flash Player

Creative Commons License

Search Support

Document Details

ID:tn_14201
Browser:Chrome
Internet Explorer
Netscape
Opera
Safari
Firefox
Database:DB2
Informix
MySQL
Oracle
SQL Server
Sybase
MS Access

Products Affected:

dreamweaver
flash
flashplayer