# Reversing MC On A Framelabel

**URL:** https://forum.kirupa.com/t/reversing-mc-on-a-framelabel/219917
**Category:** flash
**Created:** [March 21, 2007, 3:49am UTC](https://forum.kirupa.com/t/reversing-mc-on-a-framelabel/219917 "2007-03-21T03:49:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tomyknoker](https://avatars.discourse-cdn.com/v4/letter/t/50afbb/32.png) [@tomyknoker](https://forum.kirupa.com/u/tomyknoker)
#### Post date: [March 21, 2007, 3:49am UTC](https://forum.kirupa.com/t/reversing-mc-on-a-framelabel/219917/1 "2007-03-21T03:49:04Z")

</div>

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?

```auto

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;
			}
		};
	};
}

```
