Log in

View Full Version : Flash Wmode



jscheuer1
10-23-2008, 07:07 PM
This is in response to a private request -

It's working in IE because you have the wmode param set, but you also need to set the embed wmode attribute for other browsers.

Add the highlighted:


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="445" height="90">
<param name="movie" value="2008/sponsors/1lacrosse/1lax445b.swf">
<param name="quality" value="high">
<PARAM NAME="WMODE" VALUE="transparent">
<embed wmode="transparent" src="2008/sponsors/1lacrosse/1lax445b.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="445" height="90"></embed>
</object>

You will have to add that attribute to all of your Flash embed tags.

Now, I am assuming no javascript is used to rewrite the tags, or if it is, it uses the params and attributes already present. If this is not the case, there will probably be one or two other changes to be made somewhere. But it looks to me as if this will take care of it.

bluewalrus
10-24-2008, 05:40 AM
Is there a question here? That is the code i use to display swf's so it validates.

jscheuer1
10-24-2008, 06:18 AM
This is in response to a private request


Is there a question here? That is the code i use to display swf's so it validates.

There was a question in private. If you are not the person who originally asked it, I guess not. But since you've chimed in here, just for your information, the embed tag is not valid, so I'm just a little confused at your statement, though I may have misunderstood it. In any case, to write a valid cross browser Flash object tag combo, you must use two nested object tags, not an embed nested in an object tag. However, most folks consider this an extreme measure, though it isn't all that hard to do if you really want valid code.