Javascript 在Chrome扩展背景页面上使用ExternalInterface是否可行?
在SWF embed on background.html和background.html之间使用ExternalInterface是否可能 当creationComplete时,调用ExternalInterface.call(“警报”、“测试”),但什么也没有发生 当background.html作为文件打开时,它会工作 SWF和bacground.html位于同一目录中 SWF插件全局安全面板和flash.system.Security.allowDomain(“*”)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
Google Chrome是最新版本。您必须为外部接口调用一个函数 尝试:
或者在background.html上创建一个js函数,为您完成剩下的工作。Flash Player呢?如果你有胡椒粉,它可能是问题的根源。
ExternalInterface.call("function setLocation() {alert("Hello!");}");