开发者

Javascript in stand alone Flash / Flash lite app

开发者 https://www.devze.com 2022-12-16 00:17 出处:网络
Can a stand alone flash / flashlite app invoke javascript functions using externalinterface or any other interfacing feature in actionscr开发者_如何学运维ipt ?

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

0

精彩评论

暂无评论...
验证码 换一张
取 消