Hello
I load a text (*.txt) file with html tags content using the LoadVars() class. it goes ok until the loaded file comes up with the bullet tag <li>, after it shows up the bullet, every new line or parragraph appears with a bullet, even if the tag isnt included.
The code i use to load the file is:
function setText(who:String){
var file:String="txt/"+generateFileName()+".txt";
myData = new LoadVars();
//im overriding the onData function
myData.onData = function (src:String){
_root["textF"+who].html = true;
_root["textF"+who].htmlText = src;
}
myData.load(file);
}
the function setText is called whenever i want to load some text (according to the generateFileName() function)
i dont know why, but after i call a file with bullets, it makes flash to add bullets to every file loaded.
I load a text (*.txt) file with html tags content using the LoadVars() class. it goes ok until the loaded file comes up with the bullet tag <li>, after it shows up the bullet, every new line or parragraph appears with a bullet, even if the tag isnt included.
The code i use to load the file is:
function setText(who:String){
var file:String="txt/"+generateFileName()+".txt";
myData = new LoadVars();
//im overriding the onData function
myData.onData = function (src:String){
_root["textF"+who].html = true;
_root["textF"+who].htmlText = src;
}
myData.load(file);
}
the function setText is called whenever i want to load some text (according to the generateFileName() function)
i dont know why, but after i call a file with bullets, it makes flash to add bullets to every file loaded.