Problem with Flash in Chrome but not in Firefox

I had some trouble getting a Flash (.swf) file showing in Chrome. On the original site it was embedded like this

For the latest result in my test see below, I keep all versions so that I can test in different browsers

//Not working
<object height="98" width="236">
<param value="http://www.dack-test.se/banners/268x98-se-dacktest.swf" name="movie">
<embed height="98" width="236" src="http://www.dack-test.se/banners/268x98-se-dacktest.swf">
</object>
[/cod...

I changed it to the code below and it works in Chrome 16.0.912.63, Firefox 8.0, IE9, Opera 11.60 and Safari 5.1.2. The important part for Chrome seems to be the type and data attributes in the object tag.

//Working
<object height="98px" width="236px" type="application/x-shockwave-flash" data="http://www.dack-test.se/banners/268x98-se-dacktest.swf" id="flash" style="visibility: visible;">
<param name="wmode" value="transparent">
<param name="scale" value="scale">
<param name="quality" value="high">
</object>

EDIT

Hmm, later on I found out that it didn't show correctly in IE8 (from IE9 compatibility mode) so I changed the code again to the below. ...and again, see below

<object height="98" width="236">
<param name="movie" value="http://www.dack-test.se/banners/268x98-se-dacktest.swf" />
<embed height="98" src="http://www.dack-test.se/banners/268x98-se-dacktest.swf" width="236"></embed>
</object>

EDIT 2

Filtering IE and not IE


This code works for both FF, Chrome and IE

Source: http://code.google.com/p/swfobject/wiki/documentation

<object height="98px" width="236px" type="application/x-shockwave-flash" data="http://www.dack-test.se/banners/268x98-se-dacktest.swf" id="flash" style="visibility: visible;">
        <!--[if IE]>-->
<param name="movie" value="http://www.dack-test.se/banners/268x98-se-dacktest.swf" />
<embed height="98" src="http://www.dack-test.se/banners/268x98-se-dacktest.swf" width="236"></embed>
        <!--<![endif]--> 
        <!--[if !IE]>-->
<param name="wmode" value="transparent">
<param name="scale" value="scale">
<param name="quality" value="high">
        <!--<![endif]-->
</object>

Knowledge keywords: