I used this code to make my menu, but when I roll over the buttons very fast, the alpha gets stuck in place, sometimes they will get stuck at a different alpha percentage, and they wont go back to the normal state, is there something wrong in my coding?
on (rollOver) {
this.onEnterFrame = function() {
if (testbutton_btn3._alpha>75) {
testbutton_btn3._alpha -= 60;
} else {
//testbutton_btn4._alpha = 20; //just to be sure but maybe not necessary
this.onEnterFrame = null;
}
};
}
on (rollOut) {
this.onEnterFrame = function() {
if (testbutton_btn3._alpha<100) {
testbutton_btn3._alpha += 11;
} else {
this.onEnterFrame = null;
}
};
}