Javascript in stand alone Flash / Flash lite app
Can a stand alone flash / flashlite app invoke javascript functions using externalinterface or any other interfacing feature in actionscr开发者_如何学运维ipt ?
thanks kunal
Yes you can do it using:
ExternalInterface.call("javaScriptFunction", "parameter", "parameter");
Here is the documentation.
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.
you can always play with anonymous functions as well if you dont have direct access to the container:
anonymous function calling
精彩评论