# Problems Transparancy Flash Embedding

**URL:** <https://forum.kirupa.com/t/problems-transparancy-flash-embedding/223999>\
**Category:** flash\
**Created:** [April 27, 2007, 12:46pm UTC](https://forum.kirupa.com/t/problems-transparancy-flash-embedding/223999 "2007-04-27T12:46:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mane](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@mane](https://forum.kirupa.com/u/mane)\
**Post date:** [April 27, 2007, 12:46pm UTC](https://forum.kirupa.com/t/problems-transparancy-flash-embedding/223999/1 "2007-04-27T12:46:48Z")

</div>

Hey there, I’ve got a question about embedding Flash (see [http://www.kirupa.com/developer/flash8/flash\_fix.htm](http://www.kirupa.com/developer/flash8/flash_fix.htm%29))

I’ve used the script from the tutorial for a website I’m building; [http://www.manedesign.nl/clag](http://www.manedesign.nl/clag). In the header there has to be a Flash menu.

The Flash menu has to be transparent, so I tried to alter the script, like showing below. In Explorer it works perfectly, but in Firefox it has bugs…anyone can tell me which bugs? Help, please!

mane.

```auto

com.deconcept.FlashObject.prototype.getHTML = function() {
    var flashHTML = "";
    if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
        if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "PlugIn"); }
        flashHTML += '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'"';
        var params = this.getParams();
        for(var key in params){ flashHTML += ' '+ key +'="'+ params[key] +'"'; }
        pairs = this.getVariablePairs().join("&");
        if (pairs.length > 0){ flashHTML += ' flashvars="'+ pairs +'"'; }
        flashHTML += '></embed>';
    } else { // PC IE
        if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "ActiveX"); }
        flashHTML += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" id="'+ this.getAttribute('id') +'">';
        flashHTML += '<param name="movie" value="' + this.getAttribute('swf') + '" /><param name="wmode" value="transparent" />';
        var tags = this.getParamTags();
        if(tags.length > 0){ flashHTML += tags; }
        var pairs = this.getVariablePairs().join("&");
        if(pairs.length > 0){ flashHTML += '<param name="flashvars" value="'+ pairs +'" />'; }
        flashHTML += '</object>';
    }
    return flashHTML;
}

```
