title: “Object doesn't support this property or method” in Internet Explorer
body: <p>Does anyone have any idea why I get the error message “Object doesn't support this property or method” - which stops my site from working in IE6,7,8 - it works in every other browser!! I think the offending code is:</p>
  
  <pre><code> &lt;script language="javascript"&gt;
   function getFlashMovie(movieName) {
   var isIE = navigator.appName.indexOf("Microsoft") != -1;
   return (isIE) ? window[movieName] : document[movieName];
  
  }
  
   function stopFlash(){
      getFlashMovie("blank1").commandFlash();
      getFlashMovie("blank2").commandFlash();
      getFlashMovie("blank3").commandFlash();
  </code></pre>
  
  <p>}
   </p>
  
  <pre><code>&lt;div id="navigation"&gt;
  &lt;a href="#" name="btn" onClick="stopFlash()"&gt;&lt;div id="slideshow-previous"&gt;&lt;/div&gt;&lt;/a&gt;
  &lt;a href="#" name="btn" onClick="stopFlash()"&gt;&lt;div id="slideshow-next"&gt;&lt;/div&gt;&lt;/a&gt;
  &lt;div id="slideshow-counter"&gt;&lt;/div&gt;
  &lt;a href="#" name="btn" onClick="stopFlash()"&gt;&lt;div id="slideshow-first"&gt;&lt;/div&gt;&lt;/a&gt;
  &lt;div id="slideshow-first-tint"&gt;&lt;/div&gt;
  &lt;/div&gt;
  
  
  &lt;script language="javascript"&gt;
  if (AC_FL_RunContent == 0) {
      alert("This page requires AC_RunActiveContent.js.");
              } else {
      AC_FL_RunContent(
          'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
          'width', '747',
          'height', '420',
          'src', 'blank1',
          'quality', 'high',
          'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
          'align', 'middle',
          'play', 'false',
          'loop', 'true',
          'scale', 'showall',
          'wmode', 'opaque',
          'devicefont', 'false',
          'id', 'blank1',
          'bgcolor', '#ffffff',
          'name', 'blank1',
          'menu', 'true',
          'allowFullScreen', 'false',
          'allowScriptAccess','sameDomain',
          'movie', 'blank1',
          'salign', ''
          ); //end AC code
  }
  &lt;/script&gt;
  &lt;noscript&gt;
  &lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"     codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="747"     height="420" id="blank1" align="middle"&gt;
  &lt;param name="allowScriptAccess" value="sameDomain" /&gt;
  &lt;param name="allowFullScreen" value="false" /&gt;
  &lt;param name="movie" value="blank1.swf" /&gt;&lt;param name="quality" value="high" /&gt;&lt;param name="bgcolor" value="#ffffff" /&gt;&lt;embed src="blank1.swf" quality="high" bgcolor="#ffffff" width="747" height="420" name="blank1" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /&gt;
  &lt;/object&gt;
  </code></pre>
  
  <p>Thanks for any feedback!</p>