# Visited buttons

**URL:** <https://forum.kirupa.com/t/visited-buttons/26939>\
**Category:** Uncategorized\
**Created:** [July 28, 2003, 2:32pm UTC](https://forum.kirupa.com/t/visited-buttons/26939 "2003-07-28T14:32:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lbeetles](https://avatars.discourse-cdn.com/v4/letter/l/2bfe46/32.png) [@lbeetles](https://forum.kirupa.com/u/lbeetles)\
**Post date:** [July 28, 2003, 2:32pm UTC](https://forum.kirupa.com/t/visited-buttons/26939/1 "2003-07-28T14:32:16Z")

</div>

Im after a tutorial or if anyone knows of any code for some buttons, than have a mouse over effect and once you have clicked on them that have a visited state.

---

<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:** [July 28, 2003, 5:03pm UTC](https://forum.kirupa.com/t/visited-buttons/26939/2 "2003-07-28T17:03:51Z")

</div>

add another button over it called “visited” then on the first button, put this for the as  
on(release) {  
\_root.visited.\_visible = true  
}

on the first frame of the movie, put  
\_root.visited.\_visible = false

voila, u have a button that when u click it, you can tell 🙂

---

<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:** [July 28, 2003, 6:51pm UTC](https://forum.kirupa.com/t/visited-buttons/26939/3 "2003-07-28T18:51:22Z")

</div>

You can have just one movieclip that contains two frames, one for the regular state and one for the visited state. Both frames will contain stop(); actions so the movieclip doesn’t play by itself.

Then place this script on the movieclip:

```auto
on (release){
myMovieClip.gotoAndStop(2);
}

```

myMovieClip is the instance name of your button.

---

<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:** [July 28, 2003, 7:30pm UTC](https://forum.kirupa.com/t/visited-buttons/26939/4 "2003-07-28T19:30:21Z")

</div>

that works too 🙂
