# Dynamic text box, programatic text and html tags

**URL:** <https://forum.kirupa.com/t/dynamic-text-box-programatic-text-and-html-tags/294345>\
**Category:** Uncategorized\
**Created:** [August 12, 2009, 7:33pm UTC](https://forum.kirupa.com/t/dynamic-text-box-programatic-text-and-html-tags/294345 "2009-08-12T19:33:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![newttyy](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@newttyy](https://forum.kirupa.com/u/newttyy)\
**Post date:** [August 12, 2009, 7:33pm UTC](https://forum.kirupa.com/t/dynamic-text-box-programatic-text-and-html-tags/294345/1 "2009-08-12T19:33:31Z")

</div>

Never mind … I just figure it out “MovieClip(root).txtTitle.htmlText” … heh.  
Sorry for this, I’m kind of new to AS3.

* * *

Hi there,

I have a dynamic text field called “txtTitle” with the “Render as HTML” button activated.  
I am trying to add text to it programmatic by using this (the text is outside the movie clip where the code sits):

```auto

MovieClip(root).txtTitle.text = "Some text in here with html tags like <b>BOLD</b>!";

```

The html tags gets to be rendered as regular text.  
Obviously I am doing something wrong … can anyone care to explain me what do I miss?

Thanks!  
(I did use the search function but could not find anything like this situation - sorry if I repeat).
