title: swfobject.embedSWF doesn't do anything. What am i missing?
body: <p>I am experimenting with with swfObject to embed a flash video player on my site.  here is some snippets of my code:</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  
  if (typeof ARI == 'undefined')
  {
       ARI = {};
  }
  
  ARI.InsertFlash = function()
  {
      var flashvars = {};
      var parameters = {};
      parameters.quality = 'high';
      parameters.play = 'true';
      parameters.LOOP = 'false';
      parameters.wmode = 'transparent';
      parameters.allowScriptAccess='true';
  
      var attributes = {};
  
      attributes.id='ARIVID';
  
      swfobject.embedSWF("AS3MediaPlayer.swf","inlieu","720","405","9.0.0","",flashvars,parameters);
      }
  &lt;/script&gt;
  
  ...
  
  &lt;body&gt;
  &lt;div class='inlieu'&gt;
         &lt;p&gt; this will be replaced&lt;/p&gt;
  &lt;/div&gt;
  &lt;button type='button' onclick='ARI.insertFlash();'&gt;Insert&lt;/button&gt;
  </code></pre>
  
  <p></p>
  
  <p>This does nothing.  my button does hit the correct function (please excuse any html errors that might be on the page).  I've tested that with a div.  The function itself does fire, but my div doesn't get replaced.  What am I missing here?  I want to embed a flash object that uses external interface, so any answers to my question that keeps that in context would be helpful.  Also i want this to fire when a user pushes the button, not on page load, like most of the examples on the internet show.</p>
  
  <p>thanks</p>
  
  <p>Ari</p>