Adding wmode=transparent to swfobject.embedSWF

Thanks to Aran Rhee on google groups, my bug is fixed and I can go on with my life now!

Problem: My css drop down nav was showing up behind my swf. I needed to add a wmode=transparent but I was using swfObject 2.1 and couldn’t figure out how to add params. Thank you Aran! I owe you a beer.

Aran Rhee

From: “Aran Rhee”
Date: Wed, 21 May 2008 09:21:51 +1000
Local: Tues, May 20 2008 3:21 pm

Subject: RE: swfobject using the param (wmode)

You are passing the params object as the wrong argument to the embedSWF()
function. Have a look at the docs – It specifies:

var flashvars = {};
var params = {};
var attributes = {};
swfobject.embedSWF(“myContent.swf”, “myContent”, “300”, “120”,
“9.0.0”,”expressInstall.swf”, flashvars, params, attributes);

As you can see, the flashvars object goes first, THEN the params object.

Aran

Advertisements

6 thoughts on “Adding wmode=transparent to swfobject.embedSWF

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s