I worked on that tutorial by kirupa found here … 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.
I found this tutorial… 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.
check how your text file is encoded. I remember having trouble with this, but can’t remember which encoding it is meant to be.
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
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.