i have a set of buttons outputted by using an array/loop (through xml).
when i click on a button i want to get the array number of the specific item i click on.
here’s my logic:
for(i = 0; i < totalList; i++) {
this.container["item_" + i].bg.onRelease = function () {
itemClicked = this*;
trace(itemClicked);
}
}
so basically i need to know what i would replace this* with in order for it to actually output it’s array number.
any help would be greatly appreciated!