Re: Detect AIR vs Flash in SDK

2013-09-15 Thread Alex Harui
On 9/15/13 3:27 PM, "Justin Mclean" 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 S

Re: Detect AIR vs Flash in SDK

2013-09-15 Thread Justin Mclean
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

Re: Detect AIR vs Flash in SDK

2013-09-15 Thread Lee Burrows
docs stating 'a class is AIR only' should be taken with a pinch of salt - in my experience, quite a few AIR-only classes work fine in Flash Player (such as mobile components) On 15/09/2013 22:48, Justin Mclean wrote: Hi, I believe support for "imageDecodingPolicy" was added to FP 11: But th

Re: Detect AIR vs Flash in SDK

2013-09-15 Thread Justin Mclean
Hi, Woudl something like this be better than using in every time? protected function hasImageDecodePolicy():Boolean { return getDefinitionByName("flash.system.ImageDecodingPolicy"); } Or better still caching the answer to that as if it true for one bitmap it's t

Re: Detect AIR vs Flash in SDK

2013-09-15 Thread Justin Mclean
Hi, > I believe support for "imageDecodingPolicy" was added to FP 11: But the docs have ImageDecodePolocy class marked as AIR only. We also need the SDK to compile all the way down to 10.2, so I'm not sure detecting the Flash Player version helps that much. Thanks, Justin

Re: Detect AIR vs Flash in SDK

2013-09-15 Thread Dasa Paddock
I believe support for "imageDecodingPolicy" was added to FP 11: http://www.adobe.com/devnet/articles/flashplayer-air-feature-list.html http://help.adobe.com/en_US/as3/dev/WS52621785137562065a8e668112d98c8c4df-8000.html http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system

Re: Detect AIR vs Flash in SDK

2013-09-15 Thread Stephan Plath
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 = imageDecodingP

Detect AIR vs Flash in SDK

2013-09-15 Thread 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