# Formatting dynamically loaded text

**URL:** https://forum.kirupa.com/t/formatting-dynamically-loaded-text/21866
**Category:** flash
**Created:** [May 27, 2003, 2:16pm UTC](https://forum.kirupa.com/t/formatting-dynamically-loaded-text/21866 "2003-05-27T14:16:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![alicia](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@alicia](https://forum.kirupa.com/u/alicia)
#### Post date: [May 27, 2003, 2:16pm UTC](https://forum.kirupa.com/t/formatting-dynamically-loaded-text/21866/1 "2003-05-27T14:16:18Z")

</div>

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

---

<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: [May 27, 2003, 2:29pm UTC](https://forum.kirupa.com/t/formatting-dynamically-loaded-text/21866/2 "2003-05-27T14:29:54Z")

</div>

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

---

<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: [May 27, 2003, 2:44pm UTC](https://forum.kirupa.com/t/formatting-dynamically-loaded-text/21866/3 "2003-05-27T14:44:32Z")

</div>

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

pom :phil:

---

<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: [May 27, 2003, 6:22pm UTC](https://forum.kirupa.com/t/formatting-dynamically-loaded-text/21866/4 "2003-05-27T18:22:10Z")

</div>

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