Problems Transparancy Flash Embedding

Hey there, I’ve got a question about embedding Flash (see http://www.kirupa.com/developer/flash8/flash_fix.htm)

I’ve used the script from the tutorial for a website I’m building; 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.


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;
}