Am 15.09.2013 11:21, schrieb Justin Mclean:
Hi,

In fixing FLEX-33728 adding support for imageDecodingPolicy which only exist on 
AIR, I did this:

                        if (imageDecodingPolicy in loaderContext)
                                loaderContext.imageDecodingPolicy = 
imageDecodingPolicy;

Is there a better way to detect if the SDK is being used in AIR?

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;
}

--
Stephan

Reply via email to