I am trying to make code that if you mouse over one of the movieclips the other two fade to 0 amd the back to 100 when you roll off.
I hope I am close but I can get it to work continually on all three movies
Bnt1_mc.onRollOver = function() {
this.onEnterFrame = function() {
if (Bnt2_mc._alpha<=100) {
Bnt2_mc._alpha -= 10;
(Bnt3_mc._alpha<=100);
Bnt3_mc._alpha -= 10;
} else {
Bnt1_mc._alpha = 100;
Bnt2_mc._alpha = 100;
Bnt3_mc._alpha = 100;
}
};
};
Bnt1_mc.onRollOut = function() {
this.onEnterFrame = function() {
if (Bnt2_mc._alpha<=100) {
Bnt2_mc._alpha += 10;
(Bnt3_mc._alpha<=100);
Bnt3_mc._alpha += 10;
} else {
Bnt1_mc._alpha = 100;
Bnt2_mc._alpha = 100;
Bnt3_mc._alpha = 100;
}
};
};
/*------------------------
-------but
ton 2-------------------------
---------*
/
Bnt2_mc.onRollOver = function() {
this.onEnterFrame = function() {
if (Bnt1_mc._alpha<=100) {
Bnt1_mc._alpha -= 10;
(Bnt3_mc._alpha<=100);
Bnt3_mc._alpha -= 10;
} else {
Bnt1_mc._alpha = 100;
Bnt2_mc._alpha = 100;
Bnt3_mc._alpha = 100;
}
};
};
Bnt2_mc.onRollOut = function() {
this.onEnterFrame = function() {
if (Bnt1_mc._alpha<=100) {
Bnt1_mc._alpha += 10;
(Bnt3_mc._alpha<=100);
Bnt3_mc._alpha += 10;
} else {
Bnt1_mc._alpha = 100;
Bnt2_mc._alpha = 100;
Bnt3_mc._alpha = 100;
}
};
};
/*------------------------
-------but
ton 3-------------------------
---------*
/
Bnt3_mc.onRollOver = function() {
this.onEnterFrame = function() {
if (Bnt2_mc._alpha<=100) {
Bnt2_mc._alpha -= 10;
(Bnt1_mc._alpha<=100);
Bnt1_mc._alpha -= 10;
} else {
Bnt1_mc._alpha = 100;
Bnt2_mc._alpha = 100;
Bnt3_mc._alpha = 100;
}
};
};
Bnt3_mc.onRollOut = function() {
this.onEnterFrame = function() {
if (Bnt2_mc._alpha<=100) {
Bnt2_mc._alpha += 10;
(Bnt1_mc._alpha<=100);
Bnt1_mc._alpha += 10;
} else {
Bnt1_mc._alpha = 100;
Bnt2_mc._alpha = 100;
Bnt3_mc._alpha = 100;
}
};
};
Start Free Trial