Visited button state problem

hi there,
i use movie clips as my buttons.
within these there is a transparent movie clip that tells it to go to different frames depending on the mouse action as such.

on(release, rollOver){
this.gotoAndStop(2);
}
on(rollOut, dragOut){
this.gotoAndStop(1);
}
on(press){
this.gotoAndStop(3);
}

but i also want once the user has clicked on a button for the button text/state to change so as the user may know where he has been.

is that clear?
how do i it?

e

something like this ??

on(release, rollOver){
	this.gotoAndStop(2);
}
on(rollOut, dragOut){
	if (!visited) {
		this.gotoAndStop(1);
	} else {
		this.gotoAndStop(3)
	}
}
on(press){
	visited = true
	this.gotoAndStop(3);
}