Knowledge.ToString()

Flash File (.swf) is Not Loading in IE, Works Fine in Firefox

I have some video tutorial uploaded on my website. I tried it on FF and it worked perfectly but when I tried on IE, I did not get anything. I checked on google and after spending much time, I found the problem. I am explaining with example.

<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="banner"
   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
   border="0" width="754" height="64">
   <param name="movie" value="banner.swf">
   <param name="quality" value="High">
   <embed src="http://www.domain.com/video/banner.swf"
      pluginspage="http://www.macromedia.com/go/getflashplayer"
      type="application/x-shockwave-flash" name="banner"
      width="754" height="64" quality="High">
</object>

Now IE uses param movie tag to download swf file and FF uses embed src tag to download swf. Now you realized why IE is not displaying flash object. Correct code would be

<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="banner"
   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
   border="0" width="754" height="64">
   <param name="movie" value="http://www.domain.com/video/banner.swf">
   <param name="quality" value="High">
   <embed src="http://www.domain.com/video/banner.swf"
      pluginspage="http://www.macromedia.com/go/getflashplayer"type="application/x-shockwave-flash"
      name="banner" width="754" height="64" quality="High">
</object>

Note

Due to some legal issues, IE had a “Click to Activate” restriction on swf and flash files. It requires the user to click on the control to load swf file. Above mentioned issue is different than this one. To learn more about the resolution visit http://www.adobe.com/devnet/activecontent/articles/devletter.html. It contains latest change and how to work around the IE restriction issue. (Thanks to Baljeet for bringing this issue up)

Share

Comments

44 responses to “Flash File (.swf) is Not Loading in IE, Works Fine in Firefox”

Leave a Reply

Your email address will not be published. Required fields are marked *