Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/375.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Google Chrome扩展中从Javascript调用Flash As3函数_Javascript_Actionscript 3_Flash_Google Chrome Extension_Externalinterface - Fatal编程技术网

在Google Chrome扩展中从Javascript调用Flash As3函数

在Google Chrome扩展中从Javascript调用Flash As3函数,javascript,actionscript-3,flash,google-chrome-extension,externalinterface,Javascript,Actionscript 3,Flash,Google Chrome Extension,Externalinterface,我正在为谷歌浏览器开发无线电播放器扩展。 我在应用程序中使用flash,希望从Javascript代码中调用方法Mute 我知道我可以使用ExternalInterface,但它在本地环境中不起作用。 如何从本地swf文件调用方法?我没有任何机会让ExternalInterface在Chrome扩展中运行的swf中工作。奇怪的是,ExternalInterface.available是真的。我已将“allowScriptAccess”设置为true。swf中的ExternalInteraface

我正在为谷歌浏览器开发无线电播放器扩展。 我在应用程序中使用flash,希望从Javascript代码中调用方法Mute

我知道我可以使用ExternalInterface,但它在本地环境中不起作用。
如何从本地swf文件调用方法?

我没有任何机会让ExternalInterface在Chrome扩展中运行的swf中工作。奇怪的是,ExternalInterface.available是真的。我已将“allowScriptAccess”设置为true。swf中的ExternalInteraface.call(“someFunction”)似乎没有效果。使用ExternalInterface.addCallback(“someOtherFunction”)添加回调后,js中没有与嵌入式swf关联的函数“someOtherFunction”。我想我们运气不好