title: jQuery calling an as3 function
body: <p><strong>UPDATE: ANSWERED!</strong> </p>
  
  <h2>June 7th - I found the answer and accepted below. I am keeping this code so others can see what issues I had and maybe they can learn what works and what didn't.</h2>
  
  <hr>
  
  <p><strong>OLD POST:</strong></p>
  
  <p>I just figured out how to get as3 to call a jQuery function: <a href="https://stackoverflow.com/questions/10923705/as3-calling-jquery-function">as3 calling jQuery function</a></p>
  
  <p><strong>But now I want to know how jQuery can call an as3 function. Any thoughts?</strong></p>
  
  <p>UPDATE: Not fixed yet - <strong>WHAT AM I MISSING?</strong></p>
  
  <p>Here is the code in my jQuery</p>
  
  <pre><code> function BeGone()
    {
        var flash = $("#BeauFullScreen");
        flash.myFunction();
         $("#Content").show();
  
  
    }
  </code></pre>
  
  <p>Here is my code in my as3</p>
  
  <pre><code>import flash.external.*;
  function callMe() 
  { 
  
      var bParts = Beau.content as MovieClip;
      bParts.Beau.BeauBody.LeftWing.gotoAndStop(1);
      bParts.Beau.BeauBody.RightWing.gotoAndStop(1);
      bParts.alpha = .5;
  
  } 
  ExternalInterface.call("myFunction", callMe);
  </code></pre>
  
  <p>My Embedded Flash Object code:</p>
  
  <pre><code>&lt;div id="flashContentABOVE"&gt;
              &lt;object classid="33" width="100%" height="100%" id="BeauFullScreen" align="middle"&gt;
                  &lt;param name="movie" value="BeauFullScreen.swf" /&gt;
                  &lt;param name="quality" value="best" /&gt;
                  &lt;param name="bgcolor" value="#ffffff" /&gt;
                  &lt;param name="play" value="true" /&gt;
                  &lt;param name="loop" value="true" /&gt;
                  &lt;param name="wmode" value="transparent" /&gt;
                  &lt;param name="scale" value="noscale" /&gt;
                  &lt;param name="menu" value="true" /&gt;
                  &lt;param name="devicefont" value="false" /&gt;
                  &lt;param name="salign" value="" /&gt;
                  &lt;param name="allowScriptAccess" value="sameDomain" /&gt;
                  &lt;!--[if !IE]&gt;--&gt;
                  &lt;object type="application/x-shockwave-flash" data="BeauFullScreen.swf" width="100%" height="100%" id="BeauFullScreen"&gt;
                      &lt;param name="movie" value="Jesus.swf" /&gt;
                      &lt;param name="quality" value="best" /&gt;
                      &lt;param name="bgcolor" value="#ffffff" /&gt;
                      &lt;param name="play" value="true" /&gt;
                      &lt;param name="loop" value="true" /&gt;
                      &lt;param name="wmode" value="transparent" /&gt;
                      &lt;param name="scale" value="noscale" /&gt;
                      &lt;param name="menu" value="true" /&gt;
                      &lt;param name="devicefont" value="false" /&gt;
                      &lt;param name="salign" value="" /&gt;
                      &lt;param name="allowScriptAccess" value="sameDomain" /&gt;
                  &lt;!--&lt;![endif]--&gt;
                      &lt;a href="http://www.adobe.com/go/getflash"&gt;
                          &lt;img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /&gt;
                      &lt;/a&gt;
                  &lt;!--[if !IE]&gt;--&gt;
                  &lt;/object&gt;
                  &lt;!--&lt;![endif]--&gt;
              &lt;/object&gt;
          &lt;/div&gt;
  </code></pre>