Log in

View Full Version : swfobject 2.0 transparent



ggalan
07-02-2009, 05:17 AM
this worked for swfobject 1.5


<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

thetestingsite
07-02-2009, 03:04 PM
<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.