title: Call an ActionScript function from Javascript
body: <p>I want to call an Action Script function from javascript. But also I need the ActionScript function to return a value to the javascript call.</p>
  
  <p>This is what I want to accomplish.</p>
  
  <pre><code> /* JS CODE */
  
   var str = getStringFromFlash();
   alert(str);
  </code></pre>
  
  <p>getStringFromFlash should be a function defined in ActionScript that can return a value.</p>