# Linking Dynamic text boxes to HTML docs?

**URL:** <https://forum.kirupa.com/t/linking-dynamic-text-boxes-to-html-docs/8752>\
**Category:** Uncategorized\
**Created:** [November 27, 2002, 5:53pm UTC](https://forum.kirupa.com/t/linking-dynamic-text-boxes-to-html-docs/8752 "2002-11-27T17:53:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigjake](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@bigjake](https://forum.kirupa.com/u/bigjake)\
**Post date:** [November 27, 2002, 5:53pm UTC](https://forum.kirupa.com/t/linking-dynamic-text-boxes-to-html-docs/8752/1 "2002-11-27T17:53:23Z")

</div>

I’m still not sure how to link Dynamic text boxes to HTML documents, even after reading many articles on Dynamic text in Flash MX. Can anyone help or point me to the code, if any.

bigjake

---

<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:** [November 28, 2002, 4:12am UTC](https://forum.kirupa.com/t/linking-dynamic-text-boxes-to-html-docs/8752/2 "2002-11-28T04:12:57Z")

</div>

can you please describe exactly what you’re trying to accomplish?

---

<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:** [November 28, 2002, 2:16pm UTC](https://forum.kirupa.com/t/linking-dynamic-text-boxes-to-html-docs/8752/3 "2002-11-28T14:16:12Z")

</div>

No problem.

Currently I am manually inputing copy into a text box in MX and selecting the Dynamic text option so I can attach a scrollbar. What I would like to do is have the text box automatically update from a HTML document, and be able to have the formatting and links of the HTML document appear in the text box. Is this possible? If I am still not being clear let me know, it’s hard being a bigjake.

---

<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:** [December 1, 2002, 10:12pm UTC](https://forum.kirupa.com/t/linking-dynamic-text-boxes-to-html-docs/8752/4 "2002-12-01T22:12:51Z")

</div>

Im trying to do this as well. So that I can format my text and be able to update from a html file

---

<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:** [December 1, 2002, 11:18pm UTC](https://forum.kirupa.com/t/linking-dynamic-text-boxes-to-html-docs/8752/5 "2002-12-01T23:18:19Z")

</div>

Why not a txt file, check this out:

[http://www.kirupa.com/developer/mx/dynamic\_scroller.asp](http://www.kirupa.com/developer/mx/dynamic_scroller.asp)

---

<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:** [December 2, 2002, 4:40am UTC](https://forum.kirupa.com/t/linking-dynamic-text-boxes-to-html-docs/8752/6 "2002-12-02T04:40:34Z")

</div>

Actually i did that and that tutorial worked great. Only problem was I need html formating. So I found out how to do that and link to the text file. Then another problem arouse. For some reason my scroller would not scroll the whole .txt document. As if the .txt document was too long. Right now Im just pasting into flash (I have a long list of games) and the scroller works no matter how much text. Of course I wanted to use a .txt file fo reasier updating but it just isnt working with my long .txt file for some reason.

---

<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:** [December 2, 2002, 4:43am UTC](https://forum.kirupa.com/t/linking-dynamic-text-boxes-to-html-docs/8752/7 "2002-12-02T04:43:27Z")

</div>

To HTML enable the text box you are using for the above tutorial change the code to this…

```auto
loadText = new loadVars();
loadText.load("kirupa.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
                scroller.html = true;
		scroller.htmlText = this.kirupatext;
};

```

And if your code seems to chop off, make sure there isn’t a “&” symbol in your text file, because that starts a new variable so flash will cut it off at that point.
