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

Category: Tricks n Techniques

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

44 comments

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

  1. Debarati Bhattacharya says:

    Thanks a lot!! It makes my day…:)

  2. Geekyard says:

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

  3. samiullah says:

    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…

  4. Serge says:

    SWFObject 2.2 helped me!

  5. Serge says:

    It is not working for me.
    When I open page in IE7, IE8 over XP-proxy (Internet connection sharing) there is no Flash.
    But without (XP Internet connection sharing) it is OK in IE7.

  6. Abraham says:

    Hi,

    I was having the same problem with one of my clients: http://www.gxsecurityservices.co.za; when viewing with FF it was displaying the falsh content; but when I was viewing the site with IE, it was giving the error “Movie Not……”.
    The above coe sorted it out!! THANK YOU THANK YOU THANK YOU!!!!

  7. user says:

    Thanks for the help .God Bless U!!!!!!!!!!!!!!!!!!!!!!!

  8. Charlene says:

    Thanks for the awesome fix!

  9. pinky says:

    please anyone can say the solution for it…….

    1. Vishal says:

      Pinky,

      You may download flash videos by using DownloadHelper add-on in Firefox.

  10. Steph says:

    THANK YOU!!!!!!!!!!!!!!

  11. Yannick Staels says:

    Thanks for the solution. Works perfectly!

  12. Sagar Badhe says:

    we can also use
    <PARAM NAME=movie VALUE="/video/banner.swf”>
    instead of

  13. gary says:

    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?

  14. Tshifhiwa says:

    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

  15. ravindar says:

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

    Thanks DUDE..

  16. ken says:

    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 !

  17. Kumar says:

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

  18. George says:

    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

  19. Nishant says:

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

  20. RISH says:

    awesome ! thanks a ton ! u saved my day !

  21. Max says:

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

  22. spyros says:

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

  23. kehil says:

    Thx a lot Vishal!

    The same error was reported as a malfunction in joomla when dealing with sef urls, but it was only the problem you described.

  24. Mattyval says:

    I followed this tutorial and it now shows up in IE!!!

    -However now the buttons do not work in IE and they work in FF, ext.

    Any idea’s?

  25. Gimli says:

    Thanks!

  26. Hazel says:

    thanks so much, this is really helpful… took me a few hours to debug and only find out when i read ur post 🙂

  27. Sukhjinder Singh says:

    Thanks Vishal,

    You saved my time. I also would like to know from where you have found this solutions or on which text you have searched google.

    This is really embarrassing that all browser use same configuration and IE not. Dont know when this Fight of Browser will be finished and save the developers life.

  28. Asma says:

    I had the very same issue! Thanks for the solution!

  29. Loraine Riyes says:

    That was right on spot. I had no issues with FF when displaying flash on my site but IE was blank. You saved my day!

  30. Baljeet says:

    Hi Vishal,

    I am embedding some .swf file in my jsp something like what u mentioned.
    I m posting my code which embeds the swf file.

    <param name=”movie” value=”DAG.swf?pageOf=pageOfGetCount&view=AddLimit&isQuery=”/>

    <embed src=”DAG.swf?pageOf=pageOfGetCount&view=AddLimit&isQuery=” quality=”high” bgcolor=”#869ca7″width=”100%” height=”100%” name=”DAG” align=”middle”
    wmode=”transparent”
    play=”true”
    loop=”false”
    quality=”high”
    allowScriptAccess=”sameDomain”
    type=”application/x-shockwave-flash”
    pluginspage=”http://www.adobe.com/go/getflashplayer”>

    The problem i am facing on IE is that, corresponding swf is loaded only if i mouse over or click on portion on jsp where .swf file is embedded .
    This is happening only on IE.

  31. Sheraz Alvi says:

    Wow that was very useful and thanks a lot. I was working on my site: http://www.sharepointskills.co.uk and had this problem. But now I have another problem Google Street View does now show either.

    Can you help?

  32. vipin says:

    thanks a lot buddy

  33. AbeesMuhammed says:

    Thnak you So much Vishal.Now i solved my Issue

  34. cloud10 says:

    Thanks for the solution! I was just not giving the exact path for the param tag and only giving it to the embed tag. Your post helped me.. cheers!

  35. ryan says:

    can i have the slotion write step by step cuz i have no clue how to start could annyone help me
    thank you so much

  36. Someone says:

    Thank you so much for this. It really saved me a lot of trouble!

  37. hendy says:

    many thanks for the sharing, now my flash can load on ie

  38. Alex says:

    Thanks Vishal, my swf files are now also loading in IE.

  39. Adam Chromicz says:

    Awesome, been playing with this for a week!

  40. Mork says:

    Vishal, I owe you a big one. Thanks for the tip. It really saved my day (in fact, several days finding solution).

  41. Rajasekaran says:

    Thank you…. u r stuff helped a lot

  42. Rich Cobey says:

    Thanks so much Vishal, I have just been having exactly the same problem! You saved me a trawl round the web looking for the solution and I appreciate it!