Search code examples
htmlswfobject

SWF has transparent background !


I have an html code to embed SWF files in my page , the files when displayed have a transparent background ! i don't want that .

So i removed this <param name="WMODE" value="transparent"> <embed wmode="transparent" from the code and it worked !.. but i don't want that too as i need to place an invisible DIV over the flash .

any clues on how to fix the transparent background of te SWF and leave the transparent DIV on top of it ?

Thanks


Solution

  • You could keep the wmode setting, and use a parent flash to load into. Using the code here: How can I get the background color of a loaded swf file? you can get the background color of the loaded swf and use it to set a colored box in your container.