# How to catch errors from images loaded in TextFields via \<img\> tags? (not Loaders)

**URL:** <https://forum.kirupa.com/t/how-to-catch-errors-from-images-loaded-in-textfields-via-img-tags-not-loaders/329866>\
**Category:** Uncategorized\
**Created:** [October 28, 2012, 6:42am UTC](https://forum.kirupa.com/t/how-to-catch-errors-from-images-loaded-in-textfields-via-img-tags-not-loaders/329866 "2012-10-28T06:42:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaedo](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Shaedo](https://forum.kirupa.com/u/Shaedo)\
**Post date:** [October 28, 2012, 6:42am UTC](https://forum.kirupa.com/t/how-to-catch-errors-from-images-loaded-in-textfields-via-img-tags-not-loaders/329866/1 "2012-10-28T06:42:02Z")

</div>

Hi,  
Hope someone can help me work out where to put a listener to catch errors when attempting to load an image in htmlText (as opposed to a Loader)

An example would be:

```auto
var t:TextField=new TextField();
t.htmlText="image <img src = 'filename.jpg' >";
addChild(t);//Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

```

Please note that

```auto
t.addEventListener(IOErrorEvent.IO_ERROR,errorHandler); // This does nothing
//t.uncaughtErrorEvents.addEventListener(UncaughtErrorEvent.UNCAUGHT_ERROR,errorHandler) // this is not allowed

```

Thanks for taking the time,  
S.
