Results 1 to 2 of 2

Thread: swfobject 2.0 transparent

  1. #1
    Join Date
    Jan 2008
    Posts
    441
    Thanks
    67
    Thanked 4 Times in 4 Posts

    Default swfobject 2.0 transparent

    this worked for swfobject 1.5
    Code:
    <script type="text/javascript">
    	   var so = new SWFObject('c.swf?path=mainV2.swf', 'main', '100%', '670', '7', '#ffffff');
    			<!--to make the flash file invisible in SWFobject-->
    			so.addParam("wmode", "transparent");
    			so.addParam("scale", "noscale");
                so.write('flashcontent');
    	</script>
    can someone help adapt this for 2.0 please
    thanks
    Last edited by ggalan; 07-02-2009 at 04:06 PM.

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Code:
    <script type="text/javascript">
     params = {};
     params.wmode = 'Transparent';
     params.scale = 'noscale';
    
     swfobject.embedSWF('c.swf?path=mainV2.swf', 'main', '100%', '670', '9.0.0', '', '', params);
    </script>
    Probably not the best way, but works for me.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •