使用AS3从Flash触发Javascript
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用AS3从Flash触发Javascript相关的知识,希望对你有一定的参考价值。
Short and sweet, add the following two lines where you want to trigger a javascript function. Just change the javascript denoted in the code by "javascriptFunction()" with whatever you want to call. Also jsut in case make sure you have the allowScriptAccess parameter set to "always".
var runJavascript:URLRequest = new URLRequest("javascript:javascriptFunction()"); navigateToURL(runJavascript, "_top");
以上是关于使用AS3从Flash触发Javascript的主要内容,如果未能解决你的问题,请参考以下文章
将数组从 Flash (AS3) 发送到 JavaScript