I have a bunch of buttons on stage, and i want to place all of those buttons names in an array so i can assign an event listener to them easier. What i have is:
var btnArray = new Array["btn1","btn2","btn3","etc...."];
for(var c=0; c<btnArray.length; c++)
{
btnArray[c].addEventListener(MouseEvent.MOUSE_OVER, doSomething);
}
But that isnt working. Is there a good way to go about this?
Thanks.