View Full Version : loadingText [MX]
newbieMX
March 26th, 2003, 02:48 PM
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?
lostinbeta
March 26th, 2003, 02:52 PM
search: http://www.kirupaforum.com/forums/search.php?s=&action=showresults&searchid=54908&sortby=lastpost&sortorder=descending
newbieMX
March 26th, 2003, 03:24 PM
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
lostinbeta
March 26th, 2003, 03:34 PM
What code are you using? Please copy and paste it in a reply (and please use the AS vbCode tags code )
newbieMX
March 26th, 2003, 03:39 PM
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:
myTextBox.html=true
myTextBox.htmlText=myVariable
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...:-\
lostinbeta
March 26th, 2003, 03:39 PM
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)
newbieMX
March 26th, 2003, 04:02 PM
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
lostinbeta
March 26th, 2003, 04:29 PM
You should use loadVars to load in your text.
loadText = new loadVars();
loadText.onLoad = function() {
textBoxInstanceName.html = true;
textBoxInstanceName.htmlText = this.yourVariable;
};
loadText.load("textFile.txt");
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.
newbieMX
March 26th, 2003, 04:50 PM
OH cool! thx once again man :beam: !!
lostinbeta
March 26th, 2003, 05:47 PM
No problem man, glad I could help.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.