Reversing frames on button release

I’d say something like this:


menu1.onRelease = function() {
	this.play();
	menu2.onEnterFrame = function() {
		this.prevFrame();
		if (this._currentframe == 15) {
			delete this.onEnterFrame;
		}
	};
};
menu2.onRelease = function() {
	this.play();
	menu1.onEnterFrame = function() {
		this.prevFrame();
		if (this._currentframe == 15) {
			delete this.onEnterFrame;
		}
	};
};