title: Resize Flash with Javascript?
body: <p>I'm wondering if its possible to resize flash with javascript. I can't change any code in the flash object alone all I have is html, javascript and php to work with.</p>
  
  <p>Heres what I've found so far:</p>
  
  <pre><code>    var changeMe = document.getElementById("content_embed");
    changeMe.height = yy;
    changeMe.width = xx;
    if (navigator.userAgent.toLowerCase().indexOf("safari")!=-1) {
      var changemeObject = document.getElementById("content_object");
      changeMeObject.height = yy;
      changeMeObject.width = xx;
    }
  }
  </code></pre>
  
  <p>Content Embed is the embed tag and content object is the object tag in the flash. This works in chrome (and probably firefox) but not ie.
  In internet explorer I get the error: <code>Unable to set value of the property 'height': object is null or undefined</code>
  <br/> Here is the example page I have been using:<a href="http://futuregamespc.com/behind/Popup/" rel="nofollow">http://futuregamespc.com/behind/Popup/</a>
  Can anyone help? Thanks guys, you're what makes this site awesome.</p>