title: How to access a flash object embedded via swfobject's embedSWF?
body: <p>I have to call an ActionScript method via Javascript, but I have a problem accessing the flash object itself. I embed the flash file via the help of <a href="http://code.google.com/p/swfobject/" rel="nofollow noreferrer">swfobject</a>.</p>
  
  <p>Previously, when I use the static publishing approach, I could easily get the flash object by calling these methods:</p>
  
  <pre><code>swfobject.registerObject("flash_object", "9", "expressInstall.swf");
  var flash_object = swfobject.getObjectById("flash_object");
  </code></pre>
  
  <p>For some technical reasons, now I have to use the dynamic publishing approach (using <em>swfobject.embedSWF</em>). But, as mentioned in the documentation, the method <em>getObjectById</em> can only be used if you use static publishing approach.</p>
  
  <p>Now, how can I access the flash object?</p>
  
  <p>Cheers,
  Andree</p>