flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Detect AIR vs Flash in SDK
Date Mon, 16 Sep 2013 03:08:05 GMT


On 9/15/13 3:27 PM, "Justin Mclean" <justin@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.


Mime
View raw message