6 Replies Latest reply on May 23, 2010 11:59 PM by kiran7881

    calling javascript function from ActionScript Method

    kiran7881 Level 1

      Hi ,
      I am calling javascript function "isReady()" from ActionScript as shown using ExternalInterface call method .

       

      code inside Test.html

       

      <script language="JavaScript">
      function isReady()
      {
      alert("Hi Ready");
      }
      </script>

       

      code inside MXML File :

       

      public function callJavaScript():void
      {
      ExternalInterface.call("isReady");
      }

       

      I am calling this javascript function "isReady()" from ActionScript as shown . Please tell me is

      1. ExternalInterface.call("isReady"); // I am calling this on a button click of MXML , Is this correct parameter inside the call ??

      2.  Please tell me what other configuration do i need to do to access the HTML ??

      Thanks for reading and please solve this .