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. Rich Cobey
    July 27th, 2007 at 05:36 | #1

    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!

  2. Rajasekaran
    October 25th, 2007 at 02:36 | #2

    Thank you…. u r stuff helped a lot

  3. Mork
    December 12th, 2007 at 10:42 | #3

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

  4. Adam Chromicz
    January 10th, 2008 at 03:41 | #4

    Awesome, been playing with this for a week!

  5. Alex
    February 14th, 2008 at 07:04 | #5

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

  6. March 19th, 2008 at 10:49 | #6

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

  7. Someone
    June 1st, 2008 at 07:31 | #7

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

  8. ryan
    January 10th, 2009 at 14:41 | #8

    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

  9. March 14th, 2009 at 06:41 | #9

    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!

  10. AbeesMuhammed
    April 6th, 2009 at 01:04 | #10

    Thnak you So much Vishal.Now i solved my Issue

  11. April 26th, 2009 at 13:24 | #11

    thanks a lot buddy

  12. May 28th, 2009 at 04:46 | #12

    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?

  13. Baljeet
    June 29th, 2009 at 04:30 | #13

    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.

  14. September 2nd, 2009 at 08:59 | #14

    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!

  15. Asma
    December 9th, 2009 at 13:34 | #15

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

  16. Sukhjinder Singh
    January 12th, 2010 at 03:06 | #16

    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.

  17. Hazel
    January 17th, 2010 at 21:54 | #17

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

  18. Gimli
    April 4th, 2010 at 02:40 | #18

    Thanks!

  19. April 15th, 2010 at 11:27 | #19

    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?

  20. kehil
    April 21st, 2010 at 05:25 | #20

    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.

  21. June 27th, 2010 at 14:22 | #21

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

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

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

  1. No trackbacks yet.