# Transparency not working in Firefox with SWFObject 2.1

**URL:** <https://forum.kirupa.com/t/transparency-not-working-in-firefox-with-swfobject-2-1/284447>\
**Category:** web dev\
**Created:** [March 19, 2009, 10:50am UTC](https://forum.kirupa.com/t/transparency-not-working-in-firefox-with-swfobject-2-1/284447 "2009-03-19T10:50:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoolagon](https://avatars.discourse-cdn.com/v4/letter/h/58956e/32.png) [@hoolagon](https://forum.kirupa.com/u/hoolagon)\
**Post date:** [March 19, 2009, 10:50am UTC](https://forum.kirupa.com/t/transparency-not-working-in-firefox-with-swfobject-2-1/284447/1 "2009-03-19T10:50:21Z")

</div>

Hi,  
I am unable to get wmode working in FF3 with the SWFObject 2.1. Theres  
no problem at all in IE, just FF doesnt work. Ive searched through  
your documentation and threads and am none the wiser. Your help is  
much appreciated.

This code works on both IE and FF

```php
<script type="text/javascript" src="js/swfobject.js"></script> 
 <script type="text/javascript"> 
 
var flashvars = {}; 
 
flashvars.debug = "false"; 
 flashvars.local = "true"; 
 
var params = {}; 
 
params.scale = "noScale"; 
 params.allowfullscreen = "true"; 
 
swfobject.embedSWF("FlashPlayer.swf", "flashcontent", "900", "500", 
 "10.0.0", false, flashvars, params); 
 </script> 

```

Again but with the problematic wmode param added does not work on FF.

```php
<script type="text/javascript" src="js/swfobject.js"></script> 
 <script type="text/javascript"> 
 
var flashvars = {}; 
 
flashvars.debug = "false"; 
 flashvars.local = "true"; 
 
var params = {}; 
 
params.scale = "noScale"; 
 params.allowfullscreen = "true"; 
 params.wmode = "transparent"; 
 
swfobject.embedSWF("FlashPlayer.swf", "flashcontent", "900", "500", 
 "10.0.0", false, flashvars, params); 
 </script>   

```

Why does added the params.wmode = “transparent”; not work in Firefox? Has anyone else got this problem or found a solution?

Thanks

J
