We have a flash button that launches an AIR application and is failing to properly detect that AIR is installed under the new pepper flash plugin for Chrome 21 (just released for Windows). Here is a code snippet of our action script:
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);
}
This call to getAIRStatus() returns "available" instead of "installed" as it does on other browsers on the same machine which are using the regular flash plugin directly from Adobe.
Wanted to see if anyone else has run into similar issues or if there is a better way to detect if AIR is installed? This prevents our application from working at all under Chrome 21 on Windows.