# Dynamic text boxes

**URL:** <https://forum.kirupa.com/t/dynamic-text-boxes/58422>\
**Category:** Uncategorized\
**Created:** [July 22, 2004, 10:21am UTC](https://forum.kirupa.com/t/dynamic-text-boxes/58422 "2004-07-22T10:21:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpgamer2003](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@rpgamer2003](https://forum.kirupa.com/u/rpgamer2003)\
**Post date:** [July 22, 2004, 10:21am UTC](https://forum.kirupa.com/t/dynamic-text-boxes/58422/1 "2004-07-22T10:21:12Z")

</div>

Okay, I know this has been asked before, but the other posts just didn’t help me at all. So here is my question.  
I have a dynamic text box in a movie clip. I want it to draw text from an html file (mo\_gr\_m1.html). The text box is masked if that matter. Now, where do I place what actions and what instances/objects do I have to name. I just need it explained thoroughly. Thank You.

---

<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:** [July 22, 2004, 3:41pm UTC](https://forum.kirupa.com/t/dynamic-text-boxes/58422/2 "2004-07-22T15:41:38Z")

</div>

I’ve never pulled from an external html file. You could do it from an external .txt file. We’ll call it mo\_gr\_m1.txt  
Inside your txt file must look similar to this:

example=\<HTML\>\<BODY\>your text goes here\</BODY\>\</HTML\>

on the first frame of your .fla timeline put this:

\_root.loadVariablesNum(“mo\_gr\_m1.txt”, 0);

make your dynamic text box, give it a **variable name** , not instance name of your\_text\_box.

If you want to click a button to display your text for example:  
on (release) {  
your\_text\_box = \_root.example  
}

Also make sure in your text field properties you have the ‘render as html’ button clicked.

Hope this helped
