title: GeckoFX-45 Execute JavaScript function
body: <p>What different between calls Navigate and AutoJSContext?</p>
  
  <p>I try to use both but works only first way.</p>
  
  <p>HTML Page</p>
  
  <pre><code>  &lt;script src="shumway/shuobject.js"&gt;&lt;/script&gt;
    &lt;script&gt;
       var swf;
      // Create/embed SWF movie.
      shuobject.embedSWF('ExampleFla.swf', 'mainSWF', 800, 512, '9,0,10', null, {}, {}, {}, function (e) {
          swf = document.getElementById("mainSWF");
      });
  
    function Mess(){
      var swf1 = document.getElementById("mainSWF");
      swf1.setFlashVars("VarText1=1"); // It's External Interface with Flash  and   if it's string comments AutoJSContext also will work  
      alert("Hello");
    }
  </code></pre>
  
  <p>C#</p>
  
  <pre><code>// It's OK
  geckoWebBrowser1.Navigate("javascript:Mess()"); 
  // it doesn't work An unhandled exception of type 'System.AccessViolationException' occurred in Geckofx-Core.dll
  using (AutoJSContext java = new AutoJSContext(geckoWebBrowser1.Window))
          {
              java.EvaluateScript("javascript:Mess(); ", (nsISupports)geckoWebBrowser1.Window.DomWindow, out outString);
          }
  </code></pre>