# Disable buttons in over state

**URL:** https://forum.kirupa.com/t/disable-buttons-in-over-state/94124
**Category:** Uncategorized
**Created:** [November 8, 2003, 10:42pm UTC](https://forum.kirupa.com/t/disable-buttons-in-over-state/94124 "2003-11-08T22:42:57Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![gabe](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@gabe](https://forum.kirupa.com/u/gabe)
#### Post date: [November 8, 2003, 10:42pm UTC](https://forum.kirupa.com/t/disable-buttons-in-over-state/94124/1 "2003-11-08T22:42:57Z")

</div>

hey guys,

I have a group of buttons each with upstates/overstates/downstates.

when a user clicks one, i want it to be disabled. no problem.

however, i want to disabe it, but have it be stopped in the over state, so you know which button is disabled, and where you are.

umm, if that makes no sense, check out the buttons at [http://www.internettinyawards.com](http://www.internettinyawards.com).

when you hover over them the animation plays, when you click it the animation stays visible.

thanks for the help!

- gabe

---

<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: [November 9, 2003, 9:42pm UTC](https://forum.kirupa.com/t/disable-buttons-in-over-state/94124/2 "2003-11-09T21:42:37Z")

</div>

i put a stop in the animation that plays in the ‘over’ state, but when the mouse leaves the button, it plays the ‘up’ 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: [November 9, 2003, 11:31pm UTC](https://forum.kirupa.com/t/disable-buttons-in-over-state/94124/3 "2003-11-09T23:31:34Z")

</div>

ok, here is a quick example i made (it looks really crappy)

when you click one button, that button is disabled, but the other is enabled.

once clicked, i want the button to stay yellow until the other button is clicked.

i hope this makes more sense

thanks

- gabe

---

<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: [November 10, 2003, 1:17am UTC](https://forum.kirupa.com/t/disable-buttons-in-over-state/94124/4 "2003-11-10T01:17:30Z")

</div>

Gabe, i have a question for you. How did you get it so that when you click on a link it loads the appropriate movie inside the whole thing? I’ve been wondering how to do that for a while.

---

<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: [November 11, 2003, 12:11am UTC](https://forum.kirupa.com/t/disable-buttons-in-over-state/94124/5 "2003-11-11T00:11:42Z")

</div>

I worked this up for ya and it’s probably a bit clumsy the way I coded each btn to reset the others (instead of a catch-all function)…

…but it works…

cheers

---

<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: [November 11, 2003, 12:22am UTC](https://forum.kirupa.com/t/disable-buttons-in-over-state/94124/6 "2003-11-11T00:22:41Z")

</div>

Just put each button on a seperate movie clip. Inside the movie clip, have keyframe 1 (with a **stop();** action) have the actual button. Then hit F6. Go back to keyframe 1 and make it so that when the button is pressed, make it gotoAndStop at keyframe 2. On keyframe 2, select your button and press ctrl+b over and over until the button is fully broken. Test. :D.
