Hi, I created a code to get the instance of the button when clicked, but it's not working, any idea how to fix?
Code:var slotsArray:Array = new Array(slot_01, slot_02); for (var i=0; i<slotsArray.length; i++) { currentSlot = eval(slotsArray[i]); currentSlot.onRelease = function():Void { trace ("Botão " + i + " clicado." ); } }