Code:
_root.nowPressed = " ";
buttons = [SX1, nokia6600];
if (_root.nowPressed == " ") {
for (j=0; j<buttons.length; j++) {
buttons[j].onRollOut = function() {
SX1._alpha = 100;
nokia6600._alpha = 100;
nokia3650._alpha = 100;
};
}
}
SX1.onRollOver = function() {
nokia6600._alpha = 50;
nokia3650._alpha = 50;
};
Nokia6600.onRollOver = function() {
SX1._alpha = 50;
nokia3650._alpha = 50;
};
SX1.onPress = function() {
delete this.onRollOut;
delete this.onPress;
_root.nowPressed = "SX1";
attachMovie("c01", "c01", "this");
c01._x = 412;
c01._y = 158;
// nokia6600._visible = 0;
// nokia3650._visible = 0;
};
Nokia6600.onPress = function() {
delete this.onRollOut;
delete this.onPress;
_root.nowPressed = "Nokia6600";
attachMovie("c02", "c01", "this");
c01._x = 412;
c01._y = 158;
endX = 372;
//SX1._visible = 0;
//nokia3650._visible = 0;
};
The button stops working but how do I get it to rework again?