Ipad App using adobe air hangs completely on trying to load an image in release build
I am trying load a png image from a url for an AIR app that is tobe deployed in Ipad. I am using air 3.6 Below is a simplified version of my code:-
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, onIconLoaded);
loader.contentLoaderInfo.addEventListener(ErrorEvent.ERROR, function(event:ErrorEvent😞void {
trace('security sandbox error ignored');
});
var context:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain);
trace("going for image load");
loader.load ( new URLRequest("some url"), context );
private function onIconLoaded(event:flash.events.Event😞void
{
trace("image loaded");
var info:LoaderInfo = event.target as LoaderInfo;
addChild(info.content);
}
This works perfectly fine inside adobe flex builder (tried with 4.6 & 4.7). It also works fine in ipad when done fast packaging. But after doing 'export release build' the whole app is getting hanged whenever I try to download the image using the above code snippet.
Is it related to the below problem:-
http://forums.adobe.com/message/4656130
If yes, has it been resolved?
