我们有一个 Flash 按钮,可以启动 AIR 应用程序,但无法正确检测到 AIR 是否安装在适用于 Chrome 21 的新胡椒 Flash 插件(刚刚针对 Windows 发布)下。这是我们的操作脚本的代码片段:
internal var airSWFLoader:Loader = new Loader();
loaderContext.applicationDomain = ApplicationDomain.currentDomain;
airSWFLoader.contentLoaderInfo.addEventListener(Event.INIT, airSWF_init);
airSWFLoader.load(new URLRequest("http://airdownload.adobe.com/air/browserapi/air.swf"), loaderContext);
internal function airSWF_init(event:Event):void {
try {
airSWF = event.target.content;
airSWF.getAIRStatus(); //fails to detect AIR here with value "available"
} catch (e:Error) {
Logger.error(e.message,e.errorID);
}
对 getAIRStatus() 的调用返回“可用”而不是“已安装”,就像在同一计算机上直接使用 Adobe 常规 Flash 插件的其他浏览器上一样。
想看看其他人是否遇到过类似的问题,或者是否有更好的方法来检测是否安装了 AIR?这会阻止我们的应用程序在 Windows 上的 Chrome 21 下运行。
最佳答案
关于flash - Chrome 21 Pepper Flash 中 ActionScript AIR 安装检测失败的解决方案有哪些?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11834663/