Hi,
I was very excited when I saw AIR 2.6 release note, and all its cool new features - especially the ability to decode bitmaps asynchronously. Sadly, my excitement didn't last long.
- I downloaded AIR 2.6 SDK, installed in my Flex 4.5 SDK
- then I created blank flex project with 2 lines of code:
var lc:LoaderContext = new LoaderContext();
lc.imageDecodingPolicy = ImageDecodingPolicy.ON_LOAD;
- the compiler was happy, didn't complain - even popped the code hints
- when I launched the 'app', I got this nasty message:
ReferenceError: Error #1065: Variable flash.system::ImageDecodingPolicy is not defined.
at myApp/windowedapplication1_creationCompleteHandler()[C:\Users\Me\Adobe Flash Builder Burrito Preview\myApp\src\myApp.mxml:15]
at myApp/___myApp_WindowedApplication1_creationComplete()[C:\Users\Me\Adobe Flash Builder Burrito Preview\myApp\src\myApp.mxml:4]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\hero_private\frameworks\projects\framework\sr c\mx\core\UIComponent.as:13072]
at mx.core::UIComponent/set initialized()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.a s:1803]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\hero_private\frameworks\project s\framework\src\mx\managers\LayoutManager.as:842]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\hero_private\frameworks \projects\framework\src\mx\managers\LayoutManager.as:1180]
I coppied all fiels from the AIR 2.6 SDK including adl.exe. I also tried exporting release build and running it with AIR 2.6 Runtime that I have installed and is up-to-date. Application descriptor file is set to air 2.6.
<application xmlns="http://ns.adobe.com/air/application/2.6">
I have no more idea what could possibly go wrong
Thanks,
Peter
PS: what the hell is "E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180"??? "E" is my DVD Drive, which is currently empty