开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜