Posted By

activetofocus on 12/17/10


Tagged

ExternalInterfacenavigateToURLURLRequestflashjavascriptparamsas3


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

sovie


Call Javascript/JS method


 / Published in: ActionScript 3
 

URL: http://activetofocus.com/blog/call-javascript-js-method-17/

Useful for flash with javascript

  1. We often encounter some problems like Call a javascript function, flash/as3.0 provides us with two methods:
  2.  
  3. Method 1: ExternalInterface.call("goHomePage()");
  4.  
  5. Method 2: navigateToURL(new URLRequest(javascript:goHomePage()))

Report this snippet  

You need to login to post a comment.