# \[MX 2004 Pro\] HTML formatted Text Area

**URL:** <https://forum.kirupa.com/t/mx-2004-pro-html-formatted-text-area/72953>\
**Category:** flash\
**Created:** [December 10, 2004, 9:05pm UTC](https://forum.kirupa.com/t/mx-2004-pro-html-formatted-text-area/72953 "2004-12-10T21:05:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kbuff](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kbuff](https://forum.kirupa.com/u/kbuff)\
**Post date:** [December 10, 2004, 9:05pm UTC](https://forum.kirupa.com/t/mx-2004-pro-html-formatted-text-area/72953/1 "2004-12-10T21:05:43Z")

</div>

I’m trying to load html-formatted text in from a file to put in a text area (which is set to render text as html text). The htmlFile instance is of XML type and it reads in the file correctly (I traced it) but when I assign it to the text area it reads as plain text instead of html-text. I use this code on loading event:

```auto
htmlFile.onLoad = function(success)
   {
   		_root.txtArea.text=htmlFile;
   		_root.txtArea.html=true;
   }

```

the text field reads a file like this:

```auto
this is an <b>html</b> file

```

and displays:  
“this is an \<b\>html\</b\> file”  
instead of:  
“this is an **html** file”

What am I doing wrong?
