# Different Dynamic Text area question

**URL:** <https://forum.kirupa.com/t/different-dynamic-text-area-question/16689>\
**Category:** Uncategorized\
**Created:** [March 27, 2003, 2:40pm UTC](https://forum.kirupa.com/t/different-dynamic-text-area-question/16689 "2003-03-27T14:40:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cello](https://avatars.discourse-cdn.com/v4/letter/c/f17d59/32.png) [@Cello](https://forum.kirupa.com/u/Cello)\
**Post date:** [March 27, 2003, 2:40pm UTC](https://forum.kirupa.com/t/different-dynamic-text-area-question/16689/1 "2003-03-27T14:40:31Z")

</div>

Hi all

I have a dynamic text area which reads from a .txt file. All works well and I’m quite happy with it.

However, I cannot for the life of me, work out how to format the text - ie make some elements bold, as para headers.

Can a dynamic text box parse html? Is that the way to do it?

Look forward to sorting this one out.

Thx for any help.

Cello

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 27, 2003, 3:14pm UTC](https://forum.kirupa.com/t/different-dynamic-text-area-question/16689/2 "2003-03-27T15:14:05Z")

</div>

firstly you have to html enable the text field…

```auto
myTextField.html = true;

```

or in the properties panel select _render text as html_.

then assign the text through the **htmlText** property or a variable.

and here’s a list of the supported tags [http://www.macromedia.com/support/flash/ts/documents/htmltext.htm](http://www.macromedia.com/support/flash/ts/documents/htmltext.htm) 😉

hope it helps =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 9:58am UTC](https://forum.kirupa.com/t/different-dynamic-text-area-question/16689/3 "2003-03-28T09:58:57Z")

</div>

Thx for the reply kax - unfortunately I’m not getting this to work.

I’m using the following code:

\<AS\>  
loadText = new loadVars();  
loadText.load(“biography.txt”);  
loadText.onLoad = function() {  
scroller.text = this.biography;  
scroller.html = true;

};  
\</AS\>

I’ve checked the render as HTML box in properties as well - all I get back is the text box, with scroller, with the content just the HTML and not the formatted text

Any ideas appreciated!

Cello

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 1:36pm UTC](https://forum.kirupa.com/t/different-dynamic-text-area-question/16689/4 "2003-03-28T13:36:24Z")

</div>

> _Originally posted by kax_  
> **then assign the text through the htmlText property or a variable.**

```auto
scroller.htmlText = this.biography;

```

😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 2:22pm UTC](https://forum.kirupa.com/t/different-dynamic-text-area-question/16689/5 "2003-03-28T14:22:15Z")

</div>

Kax - that did the trick!

Thx for your patience and help.

Cello

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 2:23pm UTC](https://forum.kirupa.com/t/different-dynamic-text-area-question/16689/6 "2003-03-28T14:23:35Z")

</div>

no problem **Cello** =)
