Hi,
I wrote this in order to change a color of button when the mouse is on it and to reverse it to the original color when the mouse moves out of it:
import com.greensock.*;
import flash.events.MouseEvent;
btn_mc.addEventListener(MouseEvent.MOUSE_OVER, myClickReaction);
btn_mc.addEventListener(MouseEvent.MOUSE_OUT, myOutReaction);
function myClickReaction (e:MouseEvent):void{
var myTween:TweenMax = new TweenMax(e.currentTarget, 1, {tint:0x33ff00});
}
function myOutReaction (e:MouseEvent):void{
myTween.reverse();
}
what did I do wrong?
Thank you