Skip to main content
Peter Celuch
Legend
April 29, 2011
Answered

AIR 2.6 ImageDecodingPolicy problem

  • April 29, 2011
  • 1 reply
  • 977 views

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()
    at myApp/___myApp_WindowedApplication1_creationComplete()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()
    at mx.core::UIComponent/set initialized()
    at mx.managers::LayoutManager/doPhasedInstantiation()
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()

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

This topic has been closed for replies.
Correct answer active_customer16B8

You also need to set the SWF version to 11.

-ted

1 reply

active_customer16B8Correct answer
Adobe Employee
May 3, 2011

You also need to set the SWF version to 11.

-ted

Participant
June 10, 2011

Using amxmlc, I have set target-player to 11, and compile without errors.

Running with adl, I get the same error as the original post.

Is setting target-player the same as "setting the SWF version"?  Any suggestions?  Is something I set as a parameter for adl?