Multiple Instances for Button Actions...?
So I have the following Actions for my button:
b1.buttonMode = true;
b1.addEventListener(MouseEvent.ROLL_OVER,onButtonOver);
b1.addEventListener(MouseEvent.ROLL_OUT,onButtonOut);
b1 is my MC button Instance name. I want to add several other MC button names to this ActionScript (b2, b3, etc). How can I add the other MC button names without just copying and pasting the whole code with new instances?
Can't we do something like:
b1 = b2 = b3.addEventListener(MouseEvent.ROLL_OVER,onButtonOver);
Thanks