不用getURL和fsCommand方法 flash使用的actionscript跟javascript是非常相通的,下面描述如何互相调用函数: 1:javascript调用flash中的函数 在flash的脚本中增加 import flash.external.ExternalInterface; 假定要调用的函数是hello,as代码如下 function hello(){ return “hello”; } ExternalInterface.addCallback(“hello”, this, hello); //第一个参数为导出函数名,第三个参数为as的函数名,这样就可以在js中调用