Code:
stop();
var _MAIN = this;
for (var i = 1; i <= 43; i++) {
var myText = _MAIN["thisText" + i];
myText = new LoadVars();
myText.load("exhibitor" + i + ".txt");
myText.num = i;
myText.onLoad = function(success) {
if (success) {
_MAIN["title" + this.num].text = this["exhibitor" + this.num + "_name"];
}
};
}
/*
// ***** Note, changes the first to include the number '1', so it mirrors the subsequent ones. So it would be like this...
thisText1 = new LoadVars();
thisText1.load("exhibitor1.txt");
thisText1.onLoad = function(success) {
if (success) {
title1.text = thisText1.exhibitor1_name;
}
};
*/