title: javascript dialog over a flash movie
body: <p>I have a such system: When the mainsite opens, A flash image gallery appears, when the user clicks on an image, using the Flash's "ExternalInterface.call" function, I call a javascript function that opens a java dialog modal named nyromodal (which fetches raw HTML data via ajax from another page inside the dialog box) on the flash movie. And thats when problem happens:</p>
  
  <p>In Google Chrome it works well as intended, however issues happen with other browsers:</p>
  
  <ul>
  <li><p>With internet explorer, dialog opens but when I click the "close" button the dialog stays there, weirdly if I minimize the IE button and maximize it, the dialog dissapears.</p></li>
  <li><p>With Firefox, while opening the triggered dialog, dialog windows displays nothing but some corrupted graphics but if I move my mouse, it shows the contents.</p></li>
  </ul>
  
  <p>What can cause this problem? How can I fix it ? </p>
  
  <p>Here is the source code, site is not up on anywebsite thus I am not able to show it directly:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC
  
    "-//W3C//DTD XHTML 1.0 Transitional//EN"
  
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; 
  &lt;html&gt; 
  &lt;head&gt; 
    &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; 
    &lt;link type="text/css" href="/media/style.css" rel="stylesheet" /&gt; 
    &lt;link rel="stylesheet" href="/media/nyroModal.full.css" type="text/css" media="screen" /&gt;    &lt;script type="text/javascript" src="/media/jquery.js"&gt;&lt;/script&gt; 
    &lt;script language="javascript"&gt;AC_FL_RunContent = 0;&lt;/script&gt; 
    &lt;script type="text/javascript" src="/media/AC_RunActiveContent.js"&gt;&lt;/script&gt; 
    &lt;script type="text/javascript" src="/media/jquery.nyroModal-1.5.2.pack.js"&gt;&lt;/script&gt; 
    &lt;script type="text/javascript"&gt; 
      function showItem(i,x){
          var myurl = "/item/?i="+i;
          $.nyroModalManual({url:myurl,title:x});
      }
    &lt;/script&gt; 
  &lt;/head&gt; 
  &lt;body bgcolor="#000000"&gt; 
  &lt;!--url's used in the movie--&gt; 
  &lt;!--text used in the movie--&gt; 
  &lt;!-- saved from url=(0013)about:internet --&gt; 
  &lt;div STYLE="z-index: 1;"&gt;&lt;center&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=8,0,0,0',
              'width', '100%',
              'height', '600',
              'src', '/media/preview',
              'quality', 'high',
              'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
              'align', 'middle',
              'play', 'true',
              'loop', 'true',
              'scale', 'noScale',
              'wmode', 'transparent',
              'devicefont', 'false',
              'id', 'preview',
              'bgcolor', '#2e2e2e',
              'name', 'preview',
              'menu', 'true',
              'allowFullScreen', 'false',
              'allowScriptAccess','sameDomain',
              'movie', '/media/preview',
              '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=8,0,0,0" width="1024" height="850" id="preview" align="middle"&gt; 
      &lt;param name="allowScriptAccess" value="sameDomain" /&gt; 
      &lt;param name="allowFullScreen" value="false" /&gt; 
      &lt;param name="movie" value="/media/preview.swf" /&gt;&lt;param name="quality" value="high" /&gt;&lt;param name="bgcolor" value="#000000" /&gt;  &lt;embed src="/media//media/preview.swf" quality="high" bgcolor="#000000" width="100%" height="850" name="preview" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /&gt; 
      &lt;/object&gt; 
  &lt;/noscript&gt; 
  &lt;/center&gt; 
  &lt;/div&gt; 
  &lt;/body&gt; 
  &lt;/html&gt;
  </code></pre>