All pastes #121449 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-08-08 00:54 UTC
rendered paste body
//
// BUTTON 1
//
b1.onRollOver = function() {
	if (activebutton == this._name) {
		return;
	} else {
		b1.gotoAndPlay("over");
	}
};
b1.onRollOut = function() {
	if (activebutton == this._name) {
		return;
	} else {
		b1.gotoAndPlay("out");
	}
};
b1.onPress = function() {
	activeanimation.gotoAndPlay("out");
	activebutton = this._name;
	activeanimation = b1;
	b1.gotoAndStop("active");
};

//
// BUTTON 2
//
b2.onRollOver = function() {
	if (activebutton == this._name) {
		return;
	} else {
		b2.gotoAndPlay("over");
	}
};
b2.onRollOut = function() {
	if (activebutton == this._name) {
		return;
	} else {
		b2.gotoAndPlay("out");
	}
};
b2.onPress = function() {
	activeanimation.gotoAndPlay("out");
	activebutton = this._name;
	activeanimation = b2;
	b2.gotoAndStop("active");
};
//
// BUTTON 3
//
b3.onRollOver = function() {
	if (activebutton == this._name) {
		return;
	} else {
		b3.gotoAndPlay("over");
	}
};
b3.onRollOut = function() {
	if (activebutton == this._name) {
		return;
	} else {
		b3.gotoAndPlay("out");
	}
};
b3.onPress = function() {
	activeanimation.gotoAndPlay("out");
	activebutton = this._name;
	activeanimation = b3;
	b3.gotoAndStop("active");
};
//
// BUTTON 4 !!!!!!!!!
//
b3.onRollOver = function() { // <<<<<<<<<< b4
	if (activebutton == this._name) {
		return;
	} else {
		b3.gotoAndPlay("over");// <<<<<<<<<< b4
	}
};
b3.onRollOut = function() {// <<<<<<<<<< b4
	if (activebutton == this._name) {
		return;
	} else {
		b3.gotoAndPlay("out");// <<<<<<<<<< b4
	}
};
b3.onPress = function() {// <<<<<<<<<< b4
	activeanimation.gotoAndPlay("out");
	activebutton = this._name;
	activeanimation = b3;// <<<<<<<<<< b4
	b3.gotoAndStop("active");// <<<<<<<<<< b4
};