1 Reply Latest reply on Apr 1, 2011 4:38 AM by Ned Murphy

    Cant read javascript from actionscript

    _KA_MA_KA_

      ActionScript Code:


      import flash.external.ExternalInterface; function GetUserIdFromSite() {     textBoxUserIdFromSite.text = ExternalInterface.call("getUserId"); }

       

       

      JavaScript

       
      function getUserId()
      { 
      var userID = "foo"; return userID; 
      }

      I have set <param name="allowScriptAccess" value="always" />

       

      All i get in the textbox is null. Whats wrong?