Flash Script – Create a Transparent Flash Movie

By Georgina Laidlaw

The background of a Flash movie can be set to display as transparent.

The swf file on the left is not transparent. The swf file on right is set to transparent. This script works only in IE 3.0 and above. It does not work in Netscape.

Transparency allows the background color or image of the HTML page that contains the Flash movie to show through.

To make a transparent movie is very simple. Just add the wmode attribute and set it to transparent, as below.

<EMBED src=transparent.swf width=120 height=30 type="text/html;  
charset=iso-8859-1" bgcolor="#000000" wmode="transparent"  
quality="high"> </EMBED>

Download the sample files here.


No Reader comments



Because We Like You
Free Ebooks!

Grab SitePoint's top 10 web dev and design ebooks, completely free!

Instant Website Review

Use Woorank to analyze and optimize your website to improve your website to improve your ranking!

Run a review to see how your site can improve across 70+ metrics!

Get the latest in Front-end, once a week, for free.