# Visited button state problem

**URL:** <https://forum.kirupa.com/t/visited-button-state-problem/13143>\
**Category:** Uncategorized\
**Created:** [February 9, 2003, 5:29pm UTC](https://forum.kirupa.com/t/visited-button-state-problem/13143 "2003-02-09T17:29:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric\_duvauchell](https://avatars.discourse-cdn.com/v4/letter/e/ec9cab/32.png) [@eric\_duvauchell](https://forum.kirupa.com/u/eric_duvauchell)\
**Post date:** [February 9, 2003, 5:29pm UTC](https://forum.kirupa.com/t/visited-button-state-problem/13143/1 "2003-02-09T17:29:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 9, 2003, 5:43pm UTC](https://forum.kirupa.com/t/visited-button-state-problem/13143/2 "2003-02-09T17:43:07Z")

</div>

something like this ??

```auto
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);
}

```
