Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Developer
billbsb
Posts: 144
Registered: ‎03-25-2011
My Device: Playbook, Z10 L.E.
Accepted Solution

Unable to load JPEG XR (.jxr) images. Error #2124

Hello,

 

I'm making an app target for iOS and Playbook that async loads some JPEG XR (.jxr) images (with

flash.display.Loader).

 

On iOS works perfectly fine but when I deploy it to the Playbook I get the message "Error #2124".

 

On my app.xml I have:

<application xmlns="http://ns.adobe.com/air/application/3.1">

 And on my compiler settings I have set:

-locale en_US -swf-version=13

I'm also including the jxr images on my packaging settings. 

 

My Playbook is running OS 2.1.0.1032 and my iPad is on iOS 6.0. 

 

When I try the exact same code but for loading JPEG (.jpg) images, it works perfectly fine in both platforms.

 

So I suppose the AIR 3.1 runtime on the Playbook has a bug with JPEG XR images or it's a missing feature.

 

Anyone can advise?

 

Cheers!

Cheers!
Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: Unable to load JPEG XR (.jxr) images. Error #2124

Please use plain text.
Developer
billbsb
Posts: 144
Registered: ‎03-25-2011
My Device: Playbook, Z10 L.E.

Re: Unable to load JPEG XR (.jxr) images. Error #2124

[ Edited ]

Thanks for the link jtegen. I'll try it soon and report back.

 

If anyone needs some JPEG XR, try these:

https://dl.dropbox.com/u/5685163/CANON%20D60/RAW_CANON_D60_ARGB.jxr

https://dl.dropbox.com/u/5685163/CANON%20D60/RAW_CANON_D60_ARGB-2.jxr (YUV420)

https://dl.dropbox.com/u/5685163/CANON%20D60/RAW_CANON_D60_ARGB-3.jxr (YUV422)

https://dl.dropbox.com/u/5685163/CANON%20D60/RAW_CANON_D60_ARGB-4.jxr (YUV444)

 

https://dl.dropbox.com/u/5685163/CANON%20D60/RAW_CANON_D60_ARGB.jpg (JPEG 85% quality)

 

To view JPEX XR you can use XnViewMP (free cross platform).

 

Small update:

I tried compiliing with -swf-version=11 and trying to view the SWF on the browser but nothing worked.

Cheers!
Please use plain text.
BlackBerry Development Advisor (Retired)
dmalik
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook

Re: Unable to load JPEG XR (.jxr) images. Error #2124

[ Edited ]

**EDIT - We'll do what jdolce said below :smileyhappy: **

 

Hi,

 

After doing some research I did find out that JXR support did come out as of AIR 3.0 (SWF version 13). You can still target swf-version=14 (AIR 3.1) and it should work just fine. More information on SWF versioning can be found here - http://www.bytearray.org/?p=4848 

 

I found a sample online that demonstrates how to load JXR images here - http://www.scribd.com/doc/78501967/What-s-New-in-Adobe-Air-3-Reilly-2012-BBS 

 

It starts at the bottom of page 11. Let me know if you have any success. If you don't I'll jump into some code and try for myself.

 

Cheers.

Dustin

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Please use plain text.
BlackBerry Development Advisor
jdolce
Posts: 172
Registered: ‎10-25-2010
My Device: Not Specified

Re: Unable to load JPEG XR (.jxr) images. Error #2124

It would seem that jxr supported is turned off in our version of the runtime. It looks like it is tied to Stage3D for some reason. We are going to try and turn it on and do some tests to see what happens.

 

I know that doesn't help you know but we'll see if we can get it sorted out for future releases of PlayBook and BB10.

Please use plain text.
Developer
billbsb
Posts: 144
Registered: ‎03-25-2011
My Device: Playbook, Z10 L.E.

Re: Unable to load JPEG XR (.jxr) images. Error #2124

OK, finally we got to the bottom of this. And I must say it was really quick! This forum and the developers at RIM are awesome! Everybody replied to me on Twitter regarding this issue. I'm confident that I can rely on you guys for hunting down and solving any problems. This is for me a big reason for believing in BB10 #BB10Believe.

 

On the other hand, it's a bummer that this feature is not yet available on the Playbook's Air Runtime even though it's on the specs for Adobe Air 3.1 and Flash Player 11. I wonder what else is left out ... Well, I hope this thread will be useful for other developers that run into this but if you guys could add this info to the Release Notes#Know Issues it would be perfect.

 

Once again, thanks!

Cheers.

Cheers!
Please use plain text.