# Scrolling Dynamically Loaded Text \<html\> problem

**URL:** https://forum.kirupa.com/t/scrolling-dynamically-loaded-text-html-problem/120371
**Category:** Uncategorized
**Created:** [August 23, 2004, 7:45pm UTC](https://forum.kirupa.com/t/scrolling-dynamically-loaded-text-html-problem/120371 "2004-08-23T19:45:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![byersj21](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@byersj21](https://forum.kirupa.com/u/byersj21)
#### Post date: [August 23, 2004, 7:45pm UTC](https://forum.kirupa.com/t/scrolling-dynamically-loaded-text-html-problem/120371/1 "2004-08-23T19:45:55Z")

</div>

I worked on that tutorial by kirupa found here … [http://www.kirupa.com/developer/mx/dynamic\_scroller.htm](http://www.kirupa.com/developer/mx/dynamic_scroller.htm)  
and it works fine and all, but my question is, how do I get html to work properly with the txt file. I have the \<\> enabled for the dynamic text box, but it just seems to ignore it. I greatly appreciate your help.

---

<div class="post-metadata">

### Author: ![byersj21](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@byersj21](https://forum.kirupa.com/u/byersj21)
#### Post date: [August 23, 2004, 7:56pm UTC](https://forum.kirupa.com/t/scrolling-dynamically-loaded-text-html-problem/120371/2 "2004-08-23T19:56:38Z")

</div>

I found this tutorial… [http://www.kirupa.com/developer/mx/links\_dynamictextbox.htm](http://www.kirupa.com/developer/mx/links_dynamictextbox.htm)

but again… my \<\> won’t allow me to put (bold tags… ect…) on my dynamic text. So if I put a bold tag in the txt file, it won’t render it that way when viewed.

---

<div class="post-metadata">

### Author: ![ratbaggy](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@ratbaggy](https://forum.kirupa.com/u/ratbaggy)
#### Post date: [August 23, 2004, 11:08pm UTC](https://forum.kirupa.com/t/scrolling-dynamically-loaded-text-html-problem/120371/3 "2004-08-23T23:08:06Z")

</div>

check how your text file is encoded. I remember having trouble with this, but can’t remember which encoding it is meant to be.

---

<div class="post-metadata">

### Author: ![byersj21](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@byersj21](https://forum.kirupa.com/u/byersj21)
#### Post date: [August 24, 2004, 2:23pm UTC](https://forum.kirupa.com/t/scrolling-dynamically-loaded-text-html-problem/120371/4 "2004-08-24T14:23:33Z")

</div>

Well… after some research… I finally fixed it. The solution to the code just needed a few additions… (in red)

loadVarsText = new loadVars();  
loadVarsText.load(“news.txt”);  
// creating the loadVarsText function  
loadVarsText.onLoad = function() {  
[color=red] [color=black]scroller.text = this.newstext;  
[/color] scroller.html = true;  
[/color] [color=red]scroller.htmlText = this.newstext;[/color]  
};

It seems to work fine now. So if anyone else has the same problem… this should fix it. I found the article from Macromedia which can be found here:  
[http://www.macromedia.com/support/flash/ts/documents/dynamic\_text\_scrollmx.htm](http://www.macromedia.com/support/flash/ts/documents/dynamic_text_scrollmx.htm)

But for the most part, I used the tutorial by Kirupa on Scrolling Dynamically Loaded text and that worked fine until I ran into that one issue.
