Button mc and "if" state

Hi. I have a button mc using the following code:

_root.folio.but1.onRollOver = function() {
		this.gotoAndStop(2);
	this.onRollOut = function() {
		this.gotoAndStop(1);
	this.onRelease = function() {
		this.gotoAndStop(3);
};
};
};

I need the last bit of code to make it stay at the mcs frame nr. 3 after clicking it (though I still want it to go to frame 2 on rollOver). I have tried using the “if” state, but cant get it right. I am thinking it must be a way to write a code that says something like: If I go to frame three, disable the code gotoAndStop(1).

Anyone have a clue?