I'm seeking a method that tells me whether my code is running inside an AIR app or not. Something a lot less tacky than polling an AIR-only method. So far, searching the docs has been unfruitful. Anyone know of such a method?
+1
A:
Hi, have you tried with flash.system.Capabilities ?
This gives you lot of information about the player running your swf.
wezzy
2010-10-19 23:17:49
+3
A:
As said above check playerType within Capabilities:
switch (Capabilities.playerType) {
case "Desktop":
trace("inside Air");
break;
default:
trace("inside Standalone or Browser");
break;
}
Patrick
2010-10-20 01:04:46
That's perfect!
Sold Out Activist
2010-10-21 01:53:58