Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error loading big HTML files in Flash 8

Status
Not open for further replies.

spira

Programmer
Aug 12, 2006
1
MX
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top