# Error ERRORS!

**URL:** <https://forum.kirupa.com/t/error-errors/250511>\
**Category:** flash\
**Created:** [January 30, 2008, 3:46am UTC](https://forum.kirupa.com/t/error-errors/250511 "2008-01-30T03:46:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![theonlycarmire](https://avatars.discourse-cdn.com/v4/letter/t/a183cd/32.png) [@theonlycarmire](https://forum.kirupa.com/u/theonlycarmire)\
**Post date:** [January 30, 2008, 3:46am UTC](https://forum.kirupa.com/t/error-errors/250511/1 "2008-01-30T03:46:56Z")

</div>

Hey folks,

I have a really frustrating issue here. I am looking at code that is as follows:

```php

function loadImage(req:URLRequest){
    trace(req.url);
    var imageloader:Loader = new Loader();
    imageloader.load(req);
    imageloader.addEventListener(IOErrorEvent.IO_ERROR, errorFunc);
    function errorFunc(e:Event){
        imageloader.load(new URLRequest("gfx/default.jpg"));
        trace("pass");
        //trace(e);
    }
    addChild(imageloader);
}

```

The idea being that, if I make a request for an image and it isn’t existing, then I don’t want the entire movie to crash. However, the IOErrorEvent.IO\_ERROR is not catching my fail errors. I keep getting this message:

Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

I know that the URL is not found! How do I make this work?

Thanks in advance!!!

-Carmire
