this weird thing happens. when i use so.addParam("wmode", "transparent"); the SWF is Not transparent. when using the same code directly in the <embed> is DOES work ??? I realy can't explain why this happens. i checked the var 'swfNode' and the whole string for the <embed> tag looks fine. but the SWF is not transparent.... any ideas?
//----- this does NOT work -----> var so = new SWFObject("/_flash/header.swf", "header", 510, 116, 8); so.addVariable("img", "crm.png"); so.addParam("quality", "high"); so.addParam("wmode", "transparent"); so.write("flashcontent");
<--- This DOES work ---> <embed src="/_flash/header.swf" width="510" height="116" quality="high" flashvars="img=crm.png" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent">
When i click the SWF the the loaded PNG turns transparent???? it has something to do with the fact that SWFobjects works around the concept of first having to click an SWF to make it active.... does anyone know how to set the focus to the <embed> after its loaded???
you can see it here. http://superp.lefthandmedia.com/test.htm I'm seeing this in FF2.0. its a PNG with alpha that is loaded into the SWF. the whole thing is only transparent when i click on it.
Your "flashcontent" div has a flash object in it already - you should not have flash in the div that's going to be replaced with flash - maybe this is the problem. I would also set the width and height of the flashcontent div like this:
Oohhhhh - wmode transparent has lots of problems in FF! I don't use it at all anymore. This is a common problem and I don't think there is a solution. You can get away with using it as long as you don't have any buttons on the page that the user needs to click on.
Hi kamermans, I'm sure there are a lot of problems with FF dislaying transparancy. But this particular problem seems to arise from SWFobject. as the test page shows. SOo if there is a fix for it it could maybe also be beneficial for other buggies.
PS i know there is a flashobject in the 'flashcontent' div i use it for testing. in the end result it will be a gif. thanks anyway
I've got wmode working in Firefox but not IE 7. Here's my code:
var so = new SWFObject("flash/container.swf", "container", "100%", "100%", "8", "#eeeeee"); so.addParam("quality", "high"); so.addParam("wmode", "transparent"); so.addParam("menu", "false"); so.addParam("salign", "lt"); so.write("flashcontent");
If I comment out the wmode line, my Flash shows up as it should. When I use the line, the Flash is gone so it's not that it doesn't make the Flash transparent, it simply doesn't display it all. The alternate content doesn't show either come to think of it. In Firefox it works just fine.
I looked at the source code to see if I could alter it like simonjs did but I'd rather have it working without a hack.
I am having this same problem, though not in every instance of firefox. On my machine at work and home, the background does not appear transparent. On my other coworkers machines, the background is transparent. I would like it to appear trasnparent across the board. Adding the params mentioned above did not fix it for my browser.