# HTML-code in dynamic text-square

**URL:** https://forum.kirupa.com/t/html-code-in-dynamic-text-square/6325
**Category:** flash
**Created:** [October 4, 2002, 7:38am UTC](https://forum.kirupa.com/t/html-code-in-dynamic-text-square/6325 "2002-10-04T07:38:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Danneman](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@Danneman](https://forum.kirupa.com/u/Danneman)
#### Post date: [October 4, 2002, 7:38am UTC](https://forum.kirupa.com/t/html-code-in-dynamic-text-square/6325/1 "2002-10-04T07:38:59Z")

</div>

Hey!

Is it possible to get html-code in a textfile that is linked to a dynamic textsquare in a flash-movie, to execute as code, not just be displayed as pure text?

---

<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: [October 4, 2002, 7:42am UTC](https://forum.kirupa.com/t/html-code-in-dynamic-text-square/6325/2 "2002-10-04T07:42:10Z")

</div>

Create your textbox.

Give it an instance name of “myText” (without quotes)

Add these Actions

```auto
text = "Hello, This is my text";
_root.myText.html = true;
_root.myText.htmlText = text;

```

Since this board converts HTML, I left out the HTML text in the variable “text” You can add them though.

I know this isn’t exactly what you wanted, but it is easily incorporated into dynamically loaded text from an external .txt file.

Especially if you are using kirupas tutorial on scrolling dynamically loaded text.
