title: ExternalInterface.addCallback does not work right
body: <p>I have js code:</p>
  
  <pre><code>function onFlashReady() {        
      sendToAS("sit");
  }
  
  function callJS(value) {        
      onFlashReady();
      return "Hi Flash.";
  }
  
  function thisMovie(movieName) {
       if (navigator.appName.indexOf("Microsoft") != -1) {
           return window[movieName];
       } else {
           return document[movieName];
       }
   }
   function sendToAS(value) {         
       thisMovie("FlashID").callAS(value);
   }
  </code></pre>
  
  <p>html:</p>
  
  <pre><code>    &lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="850" Height="588" id="FlashID" tabindex="0"&gt;
        &lt;param name="movie" value="BusFlex/BusProducts.swf" /&gt;
        &lt;param name="quality" value="high" /&gt;
        &lt;param name="wmode" value="opaque" /&gt;
        &lt;param name="allowScriptAccess" value="always" /&gt;
        &lt;param name="swfversion" value="6.0.65.0" /&gt;
        &lt;param name="expressinstall" value="Scripts/expressInstall.swf" /&gt;
        &lt;!--[if !IE]&gt;--&gt;
           &lt;object type="application/x-shockwave-flash" data="BusFlex/BusProducts.swf" width="850" height="588"&gt;
        &lt;!--&lt;![endif]--&gt;
        &lt;param name="quality" value="high" /&gt;
        &lt;param name="wmode" value="opaque" /&gt;
        &lt;param name="allowScriptAccess" value="always" /&gt;
        &lt;param name="swfversion" value="6.0.65.0" /&gt;
        &lt;param name="expressinstall" value="Scripts/expressInstall.swf" /&gt;
        &lt;div&gt;
           &lt;h4&gt;Установите или включите Adobe Flash Player.&lt;/h4&gt;
           &lt;p&gt;&lt;a href="http://www.adobe.com/go/getflashplayer"&gt;&lt;img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /&gt;&lt;/a&gt;&lt;/p&gt;
        &lt;/div&gt;
        &lt;!--[if !IE]&gt;--&gt;
           &lt;/object&gt;
        &lt;!--&lt;![endif]--&gt;
        &lt;/object&gt;
        &lt;script src="Scripts/swfobject_modified.js" type="text/javascript"&gt;&lt;/script&gt;
        &lt;script type="text/javascript"&gt;
        &lt;!-- swfobject.registerObject("FlashID"); //--&gt;
        &lt;/script&gt;
        &lt;/div&gt;
  </code></pre>
  
  <p>and actionscript code:</p>
  
  <pre><code>protected function application1_creationCompleteHandler(event:FlexEvent):void
  {
       flash.system.Security.allowDomain("http://mysite.ru");
       flash.system.Security.allowDomain("http://localhost");
       if(ExternalInterface.available)  
       {
            ExternalInterface.addCallback("callAS", fromJS);
       }
       ExternalInterface.call("callJS", "Hello JS!");
  }
  public function fromJS(str:String):void 
  {
     ...
  }
  </code></pre>
  
  <p>But it works in IE only. In FF this does not work. Help me please.</p>