Cannot get swf playing in IE

Hi Guys,
i just cant get my swf to play in IE, i tried the double object thing, and have tried all of the different answers that the internet has to offer so far. Can anyone help? it works ok in FF.

<object codebase=",5,0,0"  width="509" height="395">
  <param name="src" value="redentoptions.swf" />
	<!--[if !IE]>-->
	<object type="application/x-shockwave-flash" data="" width="509" height="395">
	<embed src="redentoptions.swf" quality="high" pluginspage="" type="application/x-shockwave-flash" width="509" height="395" </embed>

you’re missing the closing bracket for the embed tag.
in the object tag, you’re missing the classid attribute (loads/sets ActiveX control).
the value for the param attribue name should be “movie”, not “src”

haven’t really done anything in Flash in a while, but always hated remembering what I needed. I always found it easier to let the Flash program generate that code for me.
File > Publish creates an html file with the code that you can just copy and paste into your own html.

hope that helps.
…oh, and welcome to SitePoint. :slight_smile:

<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase=",5,0,0"  width="509" height="395">
  <param name="movie" value="redentoptions.swf" />
	<!--[if !IE]>-->
	<object type="application/x-shockwave-flash" data="redentoptions.swf" width="509" height="395">
	<embed src="redentoptions.swf" quality="high" pluginspage="" type="application/x-shockwave-flash" width="509" height="395"> </embed>

OK i think i added what you suggested and thanks for the help but it still doesnt work in IE.

I also don´t have a file > publish option in Flash pro 8

Any other suggestions?


no Publish option under the File menu?..strange.

hmm…I’m not sure about the data attribue in the second object tag…and I’m pretty sure you would need the classid and codebase attributes for both object tags. maybe try this then…
(grabbed and altered from a site that I think uses the same version of Flash)

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=",0,0,0" width="509" height="395">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="redentoptions.swf" />
<param name="quality" value="high" />
<embed src="redentoptions.swf" quality="high" width="509" height="395" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="" />    

hope it works.

oh…and here’s the list of required and optional tag attributes from Adobe…


What exactly does that mean?

agarcia831 thanks very much your a lifesaver, not sure exactly how, but it works a treat.

Ill have to scan through it later and see where i went wrong.

Thanks again