Flash Vista - Home
Newest Cool Site
The Two Tales
Site info | Archive
Main Navigation
Home
New Links
Top Rated
Most Popular
Cool Sites
Search

Flash Tutorials
Flash Resources
Flash News
Flash Templates
Flash Intro Templates
Website Templates
Flash Games
Flash Books
FlashVista Polls
Sitemap


Random Link
English
The Aviation Factory
Site info | Get another
FlashVista
Login
Register
Subscribe

Add Link
Modify Link
Favorites
Suggest Category

Advertise with us
Support us
Credits / Thanks
Contact

Flash Templates:

More Templates ...

Mailing List
User

Password



Register
Forgot password?
Partner websites
Flash Templates
Flash Components
Free Hit Counter
Free Seo Tools
Free Tutorials
Free Video Tutorials
Forum signatures
Other Resources
Suggest
Suggest this site to a friend


Mailing List
Status: Not logged in

English English German French Spanish Italian Portuguese Russian Polish Finnish Dutch Swedish Thai Romanian Traditional Chinese Simplified Chinese
SearchNot logged in
Keyword: Search for: Advanced Search


Transparent background in Fash


NEW Flash Tutorials in Video Format - Powered by LearnFlash.com: 45 minutes of flash tutorials now available in streaming format or download. Topics Include flash for beginners, text effects, actionscripting, audio/video, flash 8 and more.


Printer version



By Ades Tynyshev
www.adesdesign.net


There are two ways to make transparent background in Flash, one is to export as a transparent file when you are publishing from Macromedia Flash and another to insert a line of code in the HTML. We will cover both ways in this tutorial.

Browsers that support flash transparency:


  • Internet Explorer 3 or higher (Windows)
  • Internet Explorer 5.1* and 5.2* (Macintosh)
  • Netscape 7.0*
  • Mozilla 1.0 or higher*
  • AOL*
  • CompuServe*

* Macromedia Flash Player version 6,0,65,0 (Windows) or 6,0,67,0 (Macintosh) or higher required for this feature.

1. First let's look at the first one, publishing flash file (.swf) as a transparent file. Open a new file in your Macromedia Flash and draw circle in the middle with any color. Now save your file and go to File > Publish Settings or press Ctrl+Shift+F12. You should see the following window. In this window go to HTML tab and select Transparent Windowless from Window Mode. And press Publish.



Now your file is saved as a transparent swf. To be able to check the transparency of your file go and change the background color of your page (which was generated by Flash) from white to some other color. If you have followed correctly you should see only your circle on your background color, without the white rectangle around it.

2. Let's see the second way of making flash transparent. Rarely you will use the Flash generated page in your homepages, most of the time you will be inserting a flash file into your existing page. This second way of making flash file transparent is suitable for the latter.

Open your page that you would like to insert flash file with Dreamweaver or with any other HTML Editor and insert a flash file inside it. Click on the flash file and go to the code view mode.

You would see a code similar to the following:

<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="200" height="100">
<param name="movie" value="trans.swf">
<param name="quality" value="high">
<embed src="trans.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="200"
height="100"></embed>
</object>


What you have to do now is to insert a line of code inside this code, telling that this flash should be transparent. Here is the revised code. New code is shown in red color.


<span class=blue><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="200" height="100"><param name="movie" value="trans.swf"><param name="quality" value="high"><param name="wmode" value="transparent"><embed src="trans.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="100"></embed></object></span>


Just insert this line of code in green color after the last <param name="... code and add to wmode="transparent" the <embed src="... And you should have a transparent flash file!


(Added: 02-12-2005, Hits: 0, Rating: 3.88, Votes: 70, Reviews: 8)
Add to Favorites Suggest to a Friend

Reviews: (8)

This is so very confusing, didn't make sense at all. Can someone maybe re-read and re-write? Not very clear what goes were. Sorry to be a downer.
(Added: 03-06-2007 User: Guest)

SUPER EASY! did it in no time!

(Added: 12-17-2006 User: Guest)

nice...
easy to learn

(Added: 06-15-2006 User: Guest)

I tried this transparent window but it didn't workout for me.Please help me in this
(Added: 05-07-2006 User: Guest)

Muito show....parabens.

Paulo Souza

(Added: 10-29-2005 User: harbin )

niiice..
Learning thins..
I actualy needed that.

(Added: 09-01-2005 User: Tiberiu )

very nice hint i learned
(Added: 08-23-2005 User: Guest)

good i like this web page , you tech very good
(Added: 04-26-2005 User: Guest)


Add Review
Please note:
We review EVERY comment before it appears on the site, so please dont waste your time by posting spam links :)
No URLs allowed, no HTML please.

If you register or login first, your review will contain your nickname


Rate It



Excellent!
Very Good
Good
Fair
Poor