Formatting dynamically loaded text

hello,
I hope this question hasn’t already been answered. I have a scroller dynamically loading text from an external text file. (.txt). However, Flash wants to ignore the styles (bold, italics) that I have defined in the external text file. Is there a way around this?

-alicia

Hi Alicia,
If you have formatted your text using html tags you will need to use this code when loading is succesful:
[AS]
scroller.html = true;
scroller.htmlText = this.textVariable
[/AS]

where scroller is the instance name you have given your text box/scroller
where textVariable is the name of your var inside your txt file

hope that helps

SteveD

How did you define the styles in your text file exactly?

pom :phil:

Thanks, I’ll try my best and if it doesn’t work, I’ll get back to ya!