Frame 1 in the timeline:
[AS]
folder = “info/”;
infoVars = new LoadVars();
function loadVars() {
_root.infoVars.load(_root.folder+“info.txt”);
_root.infoVars.onLoad = function(success) {
if (success) {
//load = bad word, call it loadData or something else instead!
trace(_root.infoVars.loadData);
} else {
trace(“Error.”);
}
};
}
[/AS]
and on the button or what you want to use as the “trigger”:
[AS]
_root.loadVars(); //if you have other than AS 2.0, it should be loadVars instead i believe.
[/AS]
I will attach the whole “project”. (made in MX2004 w/ AS 2.0)