# Bizarre Image Load Issue - Image Unreadable - Event.COMPLETE wont fire

**URL:** <https://forum.kirupa.com/t/bizarre-image-load-issue-image-unreadable-event-complete-wont-fire/321139>\
**Category:** flash\
**Created:** [April 11, 2011, 9:34pm UTC](https://forum.kirupa.com/t/bizarre-image-load-issue-image-unreadable-event-complete-wont-fire/321139 "2011-04-11T21:34:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_RP](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@Martin\_RP](https://forum.kirupa.com/u/Martin_RP)\
**Post date:** [April 11, 2011, 9:34pm UTC](https://forum.kirupa.com/t/bizarre-image-load-issue-image-unreadable-event-complete-wont-fire/321139/1 "2011-04-11T21:34:01Z")

</div>

I have a simple image loader to pull in profile Pictures from Facebook. It seems to laod the image,Event.COMPLETE fires but MosterDebugger comes up with ‘Unreadable’ for the content. I can however add the image if I just add the loader to the stage in the ‘loadImage’ function.

The strangest part of all this is that it worked FINE around a month ago but when I came back to fix a few bugs the image loader just stopped working…  
I’ve gone back to previous versions as well and they dont work either - making me assume something has changed on Facebooks end.

Code Below:

private function loadImage(picURL:String):void {

var loader:Loader = new Loader();  
var urlRequest:URLRequest = new URLRequest(picURL);

loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);  
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO\_ERROR,ioErrorHandler);

[//loader.load](https://loader.load)(urlRequest, loaderContext);  
loader.load(urlRequest);

}

private function imageLoaded(e:Event):void {  
MonsterDebugger.trace(this, e);  
MonsterDebugger.trace(this, e.target.content);

{…}

}
