PDA

View Full Version : cannot render textbox text as html



j0se
August 25th, 2003, 04:10 AM
hi all :)

i have an mc with a textbox which i'm loading with data from an external text file. the box is set to 'render as html' but the tags in the text file are being ignored.

(i've tried everything i can think of, including starting from scratch several times...)

is there something that i'm missing, or is flash just playing up?

kode
August 25th, 2003, 04:14 AM
To assign HTML formatted text to the TextField, you use the htmlText property. ;)
loadHandler = function (success) {
if (success) {
// load data into textbox
textBox.htmlText = this.text;
} else {
gotoAndStop("error");
}
};

j0se
August 25th, 2003, 04:58 AM
thanks so much... i was up for hours last night trying to get it to work!!
:p:

kode
August 25th, 2003, 05:00 AM
Hehe - No problem. :P