PDA

View Full Version : text box issues....



moai
September 7th, 2004, 05:49 AM
I have a dynamic text box that is loading in a text file.
It seems to be doing this perfectly well.

However, some HTML tags seem to break it.

<b> makes the text dissapear.

I tried doing a <span> on it, and changing the font-family with CSS, but I dont think its reading the CSS at all.

Here is the code:



var cssStyle:TextField.StyleSheet = new TextField.StyleSheet();
cssStyle.load("txt/fla.css");

lowData = new LoadVars()
lowData.load("txt/low.txt")

lowData.onLoad = function(success){
if(success){
lowText.html = true;
lowText.styleSheet = this.cssStyle;
lowText.htmlText = this.low;
} else {
trace("Error loading data");
}
}


Can someone PLEASE tell me what is wrong??
The text was written in M$ Word, and it's reading the line breaks... would that have anything to do with it??

mbo108
September 7th, 2004, 12:57 PM
That could be a problem. Cut all the text, and paste it in Notepad, and re-save your text file. Also make sure that Word Wrap is NOT checked.