0 Replies Latest reply on Apr 11, 2011 4:45 PM by Martin-RP

    Image Load Issue (Facebook) - loader content unreadable


      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.CO MPLETE, imageLoaded);
      loader.contentLoaderInfo.addEventListener(IOErrorE vent.IO_ERROR,ioErrorHandler);

      //loader.load(urlRequest, loaderContext);


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