# Disable buttons in over state

**URL:** https://forum.kirupa.com/t/disable-buttons-in-over-state/34991
**Category:** Uncategorized
**Created:** [November 8, 2003, 10:42pm UTC](https://forum.kirupa.com/t/disable-buttons-in-over-state/34991 "2003-11-08T22:42:57Z")
**Posts on this page:** 14
**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/34991/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, 1:41am UTC](https://forum.kirupa.com/t/disable-buttons-in-over-state/34991/2 "2003-11-09T01:41:54Z")

</div>

Have your over state be a movie clip.  
Have it loop over and over or put a stop action at the end.  
If that doesn’t work, use a movieclip and code it like a button. There’s plenty of info with the handy “search” button.

Cheers,

–EP

---

<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:35pm UTC](https://forum.kirupa.com/t/disable-buttons-in-over-state/34991/3 "2003-11-09T21:35:55Z")

</div>

ok, my over state is a movieclip, but that stops playing when the mouse is no longer ‘over’ (obviously).

I would like it if the button acted like the ones in the link i provided above. The over state plays when the mouse is over, then when clicked, it stays in over state even when the mouse leaves the button.

any help would be much appreciated.

ps - your witty comment about the ‘search’ button did not 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:40pm UTC](https://forum.kirupa.com/t/disable-buttons-in-over-state/34991/4 "2003-11-09T21:40:55Z")

</div>

if i didnt understand wrong, just put stop.

Or send the file and we can have a look

---

<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/34991/5 "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/34991/6 "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/34991/7 "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 10, 2003, 3:56pm UTC](https://forum.kirupa.com/t/disable-buttons-in-over-state/34991/8 "2003-11-10T15:56:07Z")

</div>

Nemonin,

not to sound like a jerk, but

1. I don’t know what you are asking
2. I have been trying to find an answer to my question for 3 days and no luck

if you start a new thread, and clearly state your problem, I would be happy to try and help 🙂

ps - if anyone knows how to help me, plz post

---

<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, 6:26pm UTC](https://forum.kirupa.com/t/disable-buttons-in-over-state/34991/9 "2003-11-10T18:26:43Z")

</div>

Make your buttons movie clips.  
Add a “\_disabled” state to the standard \_up \_over \_down  
send to this state (goto)

---

<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, 7:21pm UTC](https://forum.kirupa.com/t/disable-buttons-in-over-state/34991/10 "2003-11-10T19:21:22Z")

</div>

thanks for posting eyezberg.

I think I understand what you are saying, but don’t know how to actually code this to get it to work.

I have attached another simple fla, if you can, let me know if i am on track or not, and what i have to add to get this to work.

thanks!

---

<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/34991/11 "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/34991/12 "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.

---

<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, 5:26am UTC](https://forum.kirupa.com/t/disable-buttons-in-over-state/34991/13 "2003-11-11T05:26:38Z")

</div>

thanks RelandR!

I belive this is exactly what i was looking for. I’ll play around with it tomorrow.

A ‘catch-all’ functions sounds intriguing as well. This would involve an array?

I guess that would be a different thread for a different day 🙂

thanks again

---

<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, 5:41am UTC](https://forum.kirupa.com/t/disable-buttons-in-over-state/34991/14 "2003-11-11T05:41:44Z")

</div>

NP… 🙂
