Friday, January 8, 2010

Transparent Flash

I once have this requirement to be fulfilled to make a swf file to appear transparent on a web page. After "googling" around, I found that:


<PARAM NAME=wmode VALUE="transparent">


has to be in the OBJECT tag for IE

and


WMODE="transparent"


has to be in the
<embed>
tag for Firefox.

and the background color of EMBED and OBJECT will be treated as transparent color as in the swf file.


Surprisingly, the result looks pretty good in Firefox. But the IE looks terrible. The edge of object in swf is wrapped with black borders and darkened if it is fading.

I still haven't found a solution to this. Not a good sharing but it is a good experience.



No comments:

Post a Comment