hi,
i am trying to build a dynamic menu. i want to asign a unique id for each button, btn1 = 1 btn2 = 2 etc… but my trace in the onRelease event returns undefined.
heres my code, i have ommited some so it is easy to read:
linkcounter = 0
function loadXML(loaded) {
if (loaded) {
id = [];
for (i=0; i<total; i++) {
// build menu
id* = linkcounter++;
item = _root.attachMovie("itemClip", "itemClip"+i, i);
item.onRelease = function() {
trace(id*);
};