Reversing MC On A Framelabel

I have 6 buttons on my stage which send the playhead to 1 of 6 framelabels… That all works really well, but I am having an issue with the code. Once you click on on of the buttons and get to the framelabel. If you click another button, it will take you straight to the framelabel, before it leaves I want it to reverse what is on the framelabel, but just can’t work out how to do it… Any ideas?


numOfBtn = 6;
stop();
for (i=0; i<numOfBtn+1; i++) {
	this["btn"+i].num = i;
	this["btn"+i].onRelease = function() {
		gotoAndStop("frm"+(this.num+1));
	};
	this["btn"+i].onRollOver = function() {
		this.play();
	};
	this["btn"+i].onRollOut = function() {
		this.onEnterFrame = function() {
			if (this._currentframe != 1) {
				this.prevFrame();
			} else {
				delete this.onEnterFrame;
			}
		};
	};
}