title: swfObject causing "Object doesn't support" error in __flash__addCallback function
body: <p>So, I have been stuck on this problem for some time now and it has caused a lot of frustration. I have found a lot of people over the many forum pages I have scoured who share the same problem but no one who has gave a clear answer as to why is this error being thrown and how to fix it.</p>
  
  <p>I am using swfObject 2.2 to embed a background video onto a page I am working on and IE7/IE8 is throwing the error: "Object doesn't support this property or method" due to line 48 character 3. Upon opening up the developer tools to see what code is causing this error, I found this:</p>
  
  <pre><code>function __flash__addCallback (instance, name) {
     instance[name] = function () {
      return eval(instance.CallFunction("&lt;invoke name=\""+name+"\" returntype=\"javascript\"&gt;" +          __flash__argumentsToXML(arguments,0) + "&lt;/invoke&gt;"));
     }
  } 
  </code></pre>
  
  <p>I tried finding where I was going wrong in my code and commented out everything besides: </p>
  
  <pre><code>swfobject.embedSWF('http://localhost/flash/player.swf', 'video_player', '100%', '100%', '9.0.0'); 
  </code></pre>
  
  <p>This is the element swfobject is looking for:</p>
  
  <pre><code>&lt;div id="video_player"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>To go a step further, I used an entirely empty .swf file to make sure the error was not being thrown by the .swf file itself.</p>
  
  <p>I would really like to know if anyone has had experience with this error using swfobject and if there is something I can do to solve it. </p>