# Adding IOErrorEventListener to TextArea

**URL:** <https://forum.kirupa.com/t/adding-ioerroreventlistener-to-textarea/251101>\
**Category:** flash\
**Created:** [February 5, 2008, 12:41pm UTC](https://forum.kirupa.com/t/adding-ioerroreventlistener-to-textarea/251101 "2008-02-05T12:41:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felixz](https://avatars.discourse-cdn.com/v4/letter/f/ecb155/32.png) [@Felixz](https://forum.kirupa.com/u/Felixz)\
**Post date:** [February 5, 2008, 12:41pm UTC](https://forum.kirupa.com/t/adding-ioerroreventlistener-to-textarea/251101/1 "2008-02-05T12:41:48Z")

</div>

```auto
this._textArea.textField.loaderInfo.addEventListener(IOErrorEvent.IO_ERROR,_IOErrorHandler);
this._textArea.loaderInfo.addEventListener(IOErrorEvent.IO_ERROR,_IOErrorHandler);

```

gives: TypeError: Error #1009: Cannot access a property or method of a null object reference.

```auto

this._textArea.addEventListener(IOErrorEvent.IO_ERROR,_IOErrorHandler);

```

Doesn’t catch that error…  
I must have missed something!
