Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load external SWF with transparent background

Status
Not open for further replies.

frozenpeas

Technical User
Sep 13, 2001
893
CA
Hi,

This is not about Flash being transparent in an HTML page, wmode, or anything like that.

I'm importing an SWF but its white background is visible overtop of the other content. I need to see only the contents of the imported SWF and not its background. How can I do this?

Thanks in advance.

frozenpeas
 
I have the same problem except I have the original fla.

How exactly (I am completely new at this) do you change the movie clips background from white to transparent?

Thanks in advance.
 
Nothing seems to work. I am following the tutorials at "Flash in a Flash" and have gone through this 3 times doing exactly what the guy does on the video and each time I get this white background. I have set wmode to transparent and don't think I have a solid colour as a background.

If you have the time to explain how I can check that the background colour in the animation is not solid or how to set it to transparent I would be grateful.

Thanks in advance.
 
Dudes - I've been fighting this for a year or more, and just figured it out this morning. A two-part fix worked for me:

(1) .swf waiting for image to load:
Don't load the image in the first frame of your .fla file's timeline. Even if you set the document's backgnd to black, the .swf can't show anything until the first frame is loaded, so it stays white until the image comes in. Load the image into the 2nd frame, and the .swf will start with a black screen until the image loads.

(2) webpage waiting for .swf to load:
In the .html file you're loading the .swf into, set every setting you can find to bgcolor=(something other than the default white). Start with the flash object and work your way up thru the whole document's setup. For example, if you're using Dreamweaver and putting the .swf in a table cell on a black page: select the .swf on the screen, set its BGcolor to black (#000000), then select (in order) the <div>, <td>, <tr>, <table>, and <body> tags and set each one's BGcolor to black. Every part of the page will stay black until the .swf loads. (If your page ain't black, change the BGcolors to whatever won't stand out on the page).

Yeee Haaa! I'm goin' to Starbucks now to celebrate!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top