The buttons share same tween class alpha function to fade out particular instance. The function only works when mouseover any first button and then can’t get the function to work again if mouseover another button afterward. Any suggestion?
import mx.transitions.Tween;
import mx.transitions.easing.*;
function box(easeType) {
var begin = 100;
var end = 0;
var time = 0.2;
var mc = _level10.box;
boxTween = new mx.transitions.Tween(mc, "_alpha", easeType, begin, end, time, true);
}
button1.hit.onRollOver = function() {
box(mx.transitions.easing.Strong.easeOut);
}
button1.hit.onRollOut = function() {
_level10.box._alpha = 100;
}
}
button2.hit.onRollOver = function() {
box(mx.transitions.easing.Strong.easeOut);
}
button2.hit.onRollOut = function() {
_level10.box._alpha = 100;
}
}