views:

53

answers:

3

Hi Can a stand alone flash / flashlite app invoke javascript functions using externalinterface or any other interfacing feature in actionscript ?

thanks kunal

A: 

Yes you can do it using:

ExternalInterface.call("javaScriptFunction", "parameter", "parameter");

Here is the documentation.

slayerIQ
A: 

Charlie boy has pointed out my concern as well. Using ExternalInterface, Javascript is invoked in the container (eg, the web browser) that also runs flash.

In our case, what I am trying to do is have a standalone actionscript utility on a client (eg, could be a mobile phone) render HTML/CSS/JS that is fetched from a remote server.

Kunal
A: 

you can always play with anonymous functions as well if you dont have direct access to the container:

anonymous function calling

shortstick