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. June 27th, 2010 at 14:22 | #1

    I had the same problem,and i solved it like your way!!
    Thank you very much!!

  2. Max
    July 1st, 2010 at 09:55 | #2

    Wow…maaad skills!! there i was cursing out IE for my lack of understanding..great stuff

  3. January 21st, 2011 at 08:59 | #3

    awesome ! thanks a ton ! u saved my day !

  4. Nishant
    January 27th, 2011 at 06:18 | #4

    Thnax a lot for this useful post, i was scratching my head for a long time with this problem…

  5. George
    February 3rd, 2011 at 05:53 | #5

    Solved mine too,
    Hats off for the great minds that share solutions.
    Thanks to Google for facilitating to get here to read the solutions
    - George Kottackakathu Thomas

  6. Kumar
    February 14th, 2011 at 11:37 | #6

    Thank you so much for putting this together. That code helped me a lot…

  7. ken
    March 15th, 2011 at 05:04 | #7

    u can try this >>>

    Delete IE 6.0, 7.0, 8.0 and anothers and install and use only firefox or chrome… just recommend to your friends and customers and everybody tell the same. I will !

  8. May 17th, 2011 at 00:24 | #8

    I have faced the same problem,,,, i got the solution with this blog

    Thanks DUDE..

  9. May 31st, 2011 at 02:06 | #9

    Thank You
    I also had the same problem, but now is all gone and it’s all Thaxx to you

    Keep up the supeb work

  10. gary
    June 28th, 2011 at 08:26 | #10

    This did not work for me…in firefox it takes my file and adds a white background to it where it should be transparent, and in internet explorer it is still just showing up blank with an x where it should be…any suggestions?

Comment pages
  1. No trackbacks yet.