Preloading Loading Textfiles

A site I am working on, mainly runs off textfiles. So some of them do have a lot of information. How can I send a message to the user that the information is loading instead of having a horrific blank textfield until the file loads?

Here’s my code
[AS]
loadText = new loadVars();
loadText.load(“publications.txt”);
loadText.onLoad = function() {
scroller.html = true;
scroller.htmlText = this.publicationsText;
};
[/AS]

I tryed a few different things but I was not successful.

scroller.text = "loading text... please wait.";
loadText = new LoadVars();
loadText.load("publications.txt");
loadText.onLoad = function(success) {
if (success) {
scroller.html = true;
scroller.htmlText = this.publicationsText;
} else {
scroller.text = "error: text not loaded!";
}
};

?? :stuck_out_tongue: :wink:

boy did you answer my question, thanks a lot :slight_smile:

you’re welcome. =)