Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/6.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
Javascript 在Chrome扩展背景页面上使用ExternalInterface是否可行?_Javascript_Actionscript 3_Google Chrome_Google Chrome Extension_Externalinterface - Fatal编程技术网

Javascript 在Chrome扩展背景页面上使用ExternalInterface是否可行?

Javascript 在Chrome扩展背景页面上使用ExternalInterface是否可行?,javascript,actionscript-3,google-chrome,google-chrome-extension,externalinterface,Javascript,Actionscript 3,Google Chrome,Google Chrome Extension,Externalinterface,在SWF embed on background.html和background.html之间使用ExternalInterface是否可能 当creationComplete时,调用ExternalInterface.call(“警报”、“测试”),但什么也没有发生 当background.html作为文件打开时,它会工作 SWF和bacground.html位于同一目录中 SWF插件全局安全面板和flash.system.Security.allowDomain(“*”) Google Ch

在SWF embed on background.html和background.html之间使用ExternalInterface是否可能

当creationComplete时,调用ExternalInterface.call(“警报”、“测试”),但什么也没有发生

当background.html作为文件打开时,它会工作

SWF和bacground.html位于同一目录中

SWF插件全局安全面板和flash.system.Security.allowDomain(“*”)


Google Chrome是最新版本。

您必须为外部接口调用一个函数

尝试:


或者在background.html上创建一个js函数,为您完成剩下的工作。

Flash Player呢?如果你有胡椒粉,它可能是问题的根源。
ExternalInterface.call("function setLocation() {alert("Hello!");}");