Error #2035: URL Not Found – a fix to the problem

Ok, so the Adobe docs say:

var loader:URLLoader = new URLLoader();
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);

But thanks to the FlashKit forums:

var pictLdr:Loader = new Loader();
pictLdr.contentLoaderInfo.addEventListener(Event.COMPLETE, imgLoaded);
I realize these are two different classes, but the docs on this type of thing are just so poor. Nevermind the horror that you can’t catch AN IO ERROR in a try catch block.

Hopefully this saves someone else some grief as well.

If you liked it, share it:

  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Blogplay
  • blogmarks
  • DZone
  • Identi.ca
  • LinkedIn
  • Reddit
  • RSS
  • Slashdot
  • StumbleUpon
  • Technorati
  • Twitter

There are no comments, yet.

Why don’t you be the first? Come on, you know you want to!

Leave a Comment