var loadText = new loadVars();
loadText.load(“2.txt”);
loadText.onLoad = function(OK) {
if (OK) {
for (var j = 1; j<=5; j++) {
menu[“txt”+j].text = this[“label”+j];
}
}
};
var content = new loadVars();
content.load(“2.txt”);
content.onLoad = function(OK) {
if (OK) {
for (var i = 1; i<=5; i++) {
menu[“menu”+i].num = i;
menu[“menu”+i].onPress = function() {
menu.myText.text = content[“text”+this.num];
};
}
}
};
My friend wrote that code for me, but I’m having trouble getting it to work. It dels with external txt files, but I’m not sur ehwat variable to use in the txt file and how to configure it. Someoen plz help.