# Visted Button within a nested mc

**URL:** <https://forum.kirupa.com/t/visted-button-within-a-nested-mc/153413>\
**Category:** flash\
**Created:** [July 1, 2005, 8:12am UTC](https://forum.kirupa.com/t/visted-button-within-a-nested-mc/153413 "2005-07-01T08:12:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grub](https://avatars.discourse-cdn.com/v4/letter/g/51bf81/32.png) [@Grub](https://forum.kirupa.com/u/Grub)\
**Post date:** [July 1, 2005, 8:12am UTC](https://forum.kirupa.com/t/visted-button-within-a-nested-mc/153413/1 "2005-07-01T08:12:08Z")

</div>

Hi there

I have a scolling menu that contains nested movie clips that  
are used as buttons. I want the buttons to keep their visted state  
once clicked this is the code I am using on the buttons.

```auto
on (release) {
	_root.gotoAndStop(60);}

onClipEvent (load) {
	x = 1;
}
on (press) {
	this.gotoAndStop("clicked");
	x = 2;
}
on (rollOver) {
	if (x == 1) {
		this.gotoAndStop("over");
	}
}
on (rollOut) {
	if (x == 1) {
		this.gotoAndStop(1);
	}
}

```

The menu is duplicated to give an infinate look but when it hits the  
end of the screen the duplicated mc wont reconize the visited state.

Anyone with any ideas

Cheers :puzzle:
