Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorrdaneel
    • CommentTimeJan 23rd 2007
     
    Hi,

    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">

    tnx
    Ralph
    • CommentAuthorrdaneel
    • CommentTimeJan 23rd 2007
     
    Addendum:

    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???
    • CommentAuthorGeoff
    • CommentTimeJan 23rd 2007
     
    SWFObject doesn't require you to click anything to make it work... I've never heard of a problem like this - can you post the link to your page?

    It also might help to isolate the problem on a separate page, with only the swf file you are trying to test.
    • CommentAuthorrdaneel
    • CommentTimeJan 24th 2007
     
    Hi Geoff,

    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.

    Ralph
    • CommentAuthorkamermans
    • CommentTimeJan 24th 2007
     
    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:

    <div id="flashcontent" style="width:760px;height:116px;">
    • CommentAuthorkamermans
    • CommentTimeJan 24th 2007
     
    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.
    • CommentAuthorrdaneel
    • CommentTimeJan 24th 2007
     
    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
    • CommentAuthorsimonjs
    • CommentTimeMar 1st 2007
     
    I've added a bit into the js in swfobject 1.5 that accepts 'wmode' parameters and it works when i've been using it in all browsers i've tested it in.

    If you want me to upload it / send it to you, let me know!
    • CommentAuthorGeoff
    • CommentTimeMar 3rd 2007 edited
     
    I've added a bit into the js in swfobject 1.5 that accepts 'wmode' parameters

    it already accepts wmode as a parameter via so.addParam("wmode", "transparent"); (or opaque)

    you shouldn't have to edit the js file to do that.
    • CommentAuthorcapsulecore
    • CommentTimeMar 22nd 2007 edited
     
    Works
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','200',
    'height','200','src','image/location','wmode','transparent','quality','high','pluginspage',
    'http://www.macromedia.com/go/getflashplayer','movie','image/location' ); //end AC code


    Doesnt work
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','563',
    'height','273','src','image/location','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie',
    'image/location' ); //end AC code
    • CommentAuthorGeoff
    • CommentTimeMar 23rd 2007
     
    that isn't swfobject, that's adobe's code.
    • CommentAuthorlcarriere
    • CommentTimeApr 19th 2007
     
    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.

    Any ideas?
    • CommentAuthorstagMan
    • CommentTimeFeb 5th 2008
     
    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.