On 9/15/13 3:27 PM, "Justin Mclean" <jus...@classsoftware.com> wrote:
>Hi, > >> I don't know, if it's better, but is an alternative: >> >> >>http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/ >>system/Security.html#sandboxType >> >> public static function get isAir(): Boolean >> { >> return Security.sandboxType.toString() == "application" ? true : >>false; >> } > >After a little searching probably checking Capabilities.playerType == >"Desktop" may be better. "in" would give flexibility if in fact it is supported in some versions of FP. Either way is fine with me.