I have a text file called “names.txt”. It has several variables called name1, name2… etc.
In my fla I have a text box called firstname where names should appear.
This is the code:
names = new loadVars();
names.load("names.txt");
button.onPress = function() {
a++;
firstname.text = names.eval("name"+a);
};
Nothing happens…
Any idea?
Thanks.