Hi there,
Small problem: I’ve loaded text into a textbox dynamically but I want to change the font for some of the pieces. So I used the font tag in my external .txt file.
The text doesn’t show up… What do i need to do to make it show up?
The code I use to load the .txt file:
[AS]
loadText = new LoadVars();
loadText.load("./txt/pc.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
pc.html = true;
pc.htmlText = this.pcspecs.split("\r").join("");
}
};
[/AS]
I’ve got a textbox with instance name “pc”. I’ve set the font of the textbox to courier new. My external .txt file looks like this:
pcspecs=<font face="arial"><b>Processor:</b></font> AMD Athlon XP 2800+ (Cooler Master Aero 7+ cooler)
Only the “AMD Athlon XP 2800+ (Cooler Master Aero 7+ cooler)” text shows up. Even when I only try to apply a simple <b> tag the text doesn’t show up. I dunno what I’m doing wrong…
Thnx in adv. Code R.