View Full Version : SWF problems in DW

04-29-2010, 05:12 AM
Ok.... when i upload a site made in Dreamweaver and has a SWF file always has the issue that the div where the swf is inside goes white when it loads.. its ugly when my background is black and when the swf is loading in the site you see that white div.... is there a way to fix this ?

04-29-2010, 08:56 AM
I think you can make the swf background transparent; http://kb2.adobe.com/cps/142/tn_14201.html

04-30-2010, 06:31 AM
I thought about that, but i think that will not work... but i'll give it a try....!!!!

04-30-2010, 07:06 AM
Why wouldn't it work mate?

05-01-2010, 12:51 AM
Ok... lets say i use a background color in my swf file and another one in dremweaver, if i make my swf transparent then it will be all one color, the dreamwever backgrounf color. But i could add a vector color to be my background instead of choosing a background color, that should work.

05-01-2010, 03:42 PM
what is a vector color?

The background of the DIV or whatever you're using does not have to be a solid color.

05-01-2010, 04:08 PM
What i meant was that i draw in flash a shape with a color for the background, the shape was created with tools from flash and its a vector.

Maybe i didn't explain well enough.. let me try again.

I have an html in Dreamweaver with a blue blackground, then i add a div that inside has a SWF wich has a orange background. When the site is loading the blue background apears well, but the div where the SWF is first apears white and then the SWF apears. I can't put the SWF transparent because then the SWF will have a blue background.

That was why i came with creating a vector with the orange color for the background so it will maintain its orange color and then i could change the SWF transparent and will keep its color and not have the html color of blue.

Maybe this will prevent that white loading of the SWF in the DIV.

Here is an example of my problem (not the one with the orange background)

Try to see at a lower speed to see what i'm talking about.


05-01-2010, 04:35 PM
My guess is because you don't use a preloader.

or try to add the following parameter to your swf object code in the HTML:
<param name="bgcolor" value="#000000">

05-01-2010, 04:38 PM
I thought about that, but i didnt add a preloader because its not that big of a file and also many times when the preloader ends the animation of the swf had already started and the viewers can't see it. Not sure why this happens.

05-01-2010, 04:48 PM
Let me try thos codes....it should work...i'll let you know