# loadingText \[MX\]

**URL:** https://forum.kirupa.com/t/loadingtext-mx/16610
**Category:** flash
**Created:** [March 26, 2003, 7:48pm UTC](https://forum.kirupa.com/t/loadingtext-mx/16610 "2003-03-26T19:48:49Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![newbieMX](https://avatars.discourse-cdn.com/v4/letter/n/ed655f/32.png) [@newbieMX](https://forum.kirupa.com/u/newbieMX)
#### Post date: [March 26, 2003, 7:48pm UTC](https://forum.kirupa.com/t/loadingtext-mx/16610/1 "2003-03-26T19:48:49Z")

</div>

Well, I have loaded text on flash from an external txt. file. But when it comes to adding html to the files such as “font face” or to simply bold the text it won’t work, I have check to have the html clicked on Flash, but the text just wont change. Cant anyone tell me what can I be doing wrong?

---

<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: [March 26, 2003, 7:52pm UTC](https://forum.kirupa.com/t/loadingtext-mx/16610/2 "2003-03-26T19:52:53Z")

</div>

search: [http://www.kirupaforum.com/forums/search.php?s=&action=showresults&searchid=54908&sortby=lastpost&sortorder=descending](http://www.kirupaforum.com/forums/search.php?s=&action=showresults&searchid=54908&sortby=lastpost&sortorder=descending)

---

<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: [March 26, 2003, 8:24pm UTC](https://forum.kirupa.com/t/loadingtext-mx/16610/3 "2003-03-26T20:24:18Z")

</div>

Umm… no still I tried your myTextBox.html=true, myTextBox.htmlText=myVariable and nothin :-\ … can you guess what I may be doing wrong? Cause I’m going to go crazy with this little code :crazy: thnx

---

<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: [March 26, 2003, 8:34pm UTC](https://forum.kirupa.com/t/loadingtext-mx/16610/4 "2003-03-26T20:34:09Z")

</div>

What code are you using? Please copy and paste it in a reply (and please use the AS vbCode tags [**AS]code[**/AS] )

---

<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: [March 26, 2003, 8:39pm UTC](https://forum.kirupa.com/t/loadingtext-mx/16610/5 "2003-03-26T20:39:02Z")

</div>

Umm… let me say it all over again, I have loaded a txt file into a dynamic html box in flash… then I used the following codes:

[AS]  
myTextBox.html=true  
myTextBox.htmlText=myVariable  
[/AS]

I still dont know why it wont read the html, the only codes I used in the txt file where to bold a few section and change the font color…:-\

---

<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: [March 26, 2003, 8:39pm UTC](https://forum.kirupa.com/t/loadingtext-mx/16610/6 "2003-03-26T20:39:36Z")

</div>

I meant for you to show the code you are using to load your text into Flash 🙂

(your most recent code, with the html code added)

---

<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: [March 26, 2003, 9:02pm UTC](https://forum.kirupa.com/t/loadingtext-mx/16610/7 "2003-03-26T21:02:49Z")

</div>

Oh, hehe, I’m using loadVariableNum actionscript to load the text into the dynamic textBox, as for the html part i dont really understood…;( :x

---

<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: [March 26, 2003, 9:29pm UTC](https://forum.kirupa.com/t/loadingtext-mx/16610/8 "2003-03-26T21:29:57Z")

</div>

You should use loadVars to load in your text.

[AS]loadText = new loadVars();  
loadText.onLoad = function() {  
textBoxInstanceName.html = true;  
textBoxInstanceName.htmlText = this.yourVariable;  
};  
loadText.load(“textFile.txt”);[/AS]

textBoxInstanceName is the INSTANCE name (NOT var name) of your text box. and yourVariable is the variable inside of your text file that you are calling.

---

<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: [March 26, 2003, 9:50pm UTC](https://forum.kirupa.com/t/loadingtext-mx/16610/9 "2003-03-26T21:50:48Z")

</div>

OH cool! thx once again man :beam: !!

---

<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: [March 26, 2003, 10:47pm UTC](https://forum.kirupa.com/t/loadingtext-mx/16610/10 "2003-03-26T22:47:03Z")

</div>

No problem man, glad I could help.
