title: Access denied embedding swf object in IE
body: <p>I am trying to currently embed a media player into certain web content and seem to be having strange problems in IE (all versions tested so far 6->8).</p>
  
  <p><a href="http://www.equalitysouthwest.org.uk/our-networks/disability/signed-pages.html" rel="nofollow noreferrer">Here is a page</a> with the player embedded in it. You can view it in FF or a webkit browser and it should work fine. In IE the flash part of it fails to load without error. (It errors when you try and use the buttons, but that's because the flash embedding has already failed).</p>
  
  <p>The javascript for the player code can be found <a href="http://www.equalitysouthwest.org.uk/esw/live/javascript/jquery.player.js" rel="nofollow noreferrer">here</a> (function generateFlashPlayer(): line 216+ is the part trying to load the swf object).</p>
  
  <p>The strangest part is that the swf itself is located <a href="http://www.equalitysouthwest.org.uk/esw/live/javascript/player.swf" rel="nofollow noreferrer">here</a> and while I can access it fine using FF or webkits I simply can't access it using IE - it just results in  a little red cross in the top left.</p>
  
  <p>I found <a href="http://blog.guya.net/2008/09/10/bug-in-internet-explorer-security-model-when-embedding-flash/" rel="nofollow noreferrer">this blog</a> which seemed to hint that reloading the page should help, but reloading the swf in the above link doesn't change the outcome at all.</p>
  
  <p>I should note that I can't duplicate this locally. Locally the player works fine in all IEs I've tested it in.</p>
  
  <p>Has anyone got any ideas/suggestions/thoughts? I'm kind of tearing my hair out at this point :(</p>
  
  <p>EDIT:
  My flash in IE was corrupted, which played a fairly large part in failing to debug the issue successfully.
  The secondary issue however appeared to be that creating an element in jQuery and embedding flash into it immediately seems to have potential issues in IE. I fixed the secondary problem by wrapping the embed code for the flash in a <code>setTimeout(function() {}, 0);</code> and it seemed to work.</p>
  
  <p>(more detailed writeup <a href="http://www.hallofbrightcarvings.com/ie-dom-updating/" rel="nofollow noreferrer">here</a> just in case someone else runs across what I currently thinking is the most obscure bug I've ever dealt with). </p>