Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Call JavaScript Function From Action Script 3

    • 0
    • 2
    • 2
    • 0
    • 0
    • 0
    • 0
    • 0
    • 601
    Comment on it

    Some time we need communication between ActionScript and the SWF container for example, an HTML page with JavaScript . So Adobe Doc has a class ExternalInterface , which solves this problem.

    First import :

    import flash.external.ExternalInterface;
    

    Now we can use call() method :

    try 
      {
          ExternalInterface.call("yourFunction",argumentList);
      }
     catch(e){}
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: