hey out there, this is doin me head in and i’m sure it’s simple:
two arrays, one for button names, one for icon value which happens when the button is clicked.
this works
btnName = new Array("e_one", "e_two", "e_three", "e_four", "e_five", "e_six", "e_seven", "e_eight", "e_nine", "e_ten");
btnIcon = new Array("e_movies", "e_tv", "e_audio", "e_radio", "e_games", "e_six", "e_seven", "e_eight", "e_nine", "e_ten");
for (i=0; i<10; i++) {
this[btnName*].onPress = function() {
btnPos = btnIcon*;
trace(btnIcon*);
};
}
but i get ‘undefined’ as the ‘btnPos’ value.
i think i need something different in the:
btnPos = btnIcon*;
bit but i cant figure out what??
any suggestions to this would be grand,
cheers,
jake