Hi,

I try to load a image file (.jpg) in my Air application. The image resolution 
in much larger than the maximum value of 16 mega pixel. 
I know that in AS3 I cannot handle this. 

My problem is: How to act on such a problem -> no error is thrown and it has 
nothing to do with the filesize.

My code:

var f:File=_list[0] as File;
var imageLoader:Loader = new Loader();
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,onLoadImage);     
        
imageLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,onErrorLoadingImage);
imageLoader.load(new URLRequest(f.url));

There will be no IOError or complete event if the resolution of the image in 
larger than 16 MPixel.

Can anyone help me out??

Thanks in advance.

CFE


Reply via email to