Hi,
I have the following code for the button over/out effect. It is nice but instead of writing the same code for function for each button (I have 15 buttons), how to shorted the code by modifying it?
Button1_mc.addEventListener(MouseEvent.MOUSE_OVER, navOver);
Button1_mc.addEventListener(MouseEvent.MOUSE_OUT, navOut);
function navOver(e:MouseEvent):void {
TweenMax.to(Button1_mc, .5, {glowFilter:{color:0xFFFFFF, alpha:1, blurX:20, blurY:20, strength:1, quality:2}});
}
function navOut(e:MouseEvent):void {
TweenMax.to(Button1_mc, .5, {glowFilter:{color:0xFFFFFF, alpha:0, blurX:0, blurY:0, strength:1, quality:2}});
TweenMax.to(e.target, .5, {tint:null});
}