Home > Tricks n Techniques > Flash File (.swf) is not loading in IE, works fine in FF

Flash File (.swf) is not loading in IE, works fine in FF

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)

Categories: Tricks n Techniques Tags:
  1. March 28th, 2013 at 00:47 | #1

    SWFObject 2.2 helped me!

  2. March 28th, 2013 at 01:27 | #2

    Hi, actually i am having the same issue with one of my flash games website…the games are working fine in chrome, ff, opera etc but not on ie all the versions..can anyone tell me whats wrong with the code.. see the code below…

  3. April 15th, 2013 at 10:11 | #3

    I face some issues with SWF. It’s not opening when hosted on web. It loads fine in local drive, any fix available?

Comment pages
1 3 4 5 33
  1. No trackbacks yet.