Search code examples
apache-flexswfobjecttransparentwmode

Setting wmode="transparent" doesn't work with Flex app and SWFObject?


I am using SWFObject to embed a Flex (4.1 SDK) made application in an HTML page like in the code sample below:

var swfVersionStr="10.0.0";
var xiSwfUrlStr="playerProductInstall.swf";
var flashvars={};
var params={};
params.quality="high";
params.bgcolor="#FFFFFF";
params.wmode="transparent";
params.menu="false";
params.allowscriptaccess="sameDomain";
params.allowfullscreen="true";
var attributes={};
attributes.id="vp";
attributes.name="vp";
attributes.align="middle";
swfobject.embedSWF("vp.swf","flashContent","624","451",swfVersionStr,xiSwfUrlStr,flashvars,params,attributes);

Why isn't the transparency of the Flash background occuring?

Thank you.


Solution

  • Solved the problem, apparently you need to implement a custom skin for your spark Application and set the rectangle's solid color fill's alpha to be 0...

    Here's one that needs to be fixed ASAP, Flex Team. :)