Is it possible to splice an event.target?
In other words, on click, I want all the buttons in the array to turn off, except the one that was clicked. the following doesn’t work, of course:
function buttonClick (event:MouseEvent):void {
if (event.target.currentLabel== "over")
{
for(var i:Number = 0; i < buttonArray.length; i++)
buttonArray.splice(event.target);
{
if (buttonArray*.currentLabel== "appear", "up")
{
buttonArray*.gotoAndPlay("disappear");
}
}
}
I’m a newb. Is there an easier way to do this?
THANKS!