I need sooooo much help loading text files (.txt). Here is what the text files says:
myVar=Succesful
and my script (in the frame)
[AS]var data = new LoadVars();
data.load(“loadtest.txt”);
data.onLoad = function(loaded) {
if (loaded) {
_root.dynamicText = this.myVar;
} else {
_root.dynamicText = “Error loading data”;
}
}[/AS]
It dusnt wrk. Do I have to host the file as .php. Do I even have to host it? or can I load it from a direct file (from my PC)