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?
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
What code are you using? Please copy and paste it in a reply (and please use the AS vbCode tags [AS]code[/AS] )
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…:-\
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)
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
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.
OH cool! thx once again man :beam: !!
No problem man, glad I could help.