# Disabling buttons over draggable MCs

**URL:** https://forum.kirupa.com/t/disabling-buttons-over-draggable-mcs/21493
**Category:** Uncategorized
**Created:** [May 22, 2003, 4:57am UTC](https://forum.kirupa.com/t/disabling-buttons-over-draggable-mcs/21493 "2003-05-22T04:57:37Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![comicGeek](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@comicGeek](https://forum.kirupa.com/u/comicGeek)
#### Post date: [May 22, 2003, 4:57am UTC](https://forum.kirupa.com/t/disabling-buttons-over-draggable-mcs/21493/1 "2003-05-22T04:57:37Z")

</div>

Hello!

I’m sure that most of us here have known about a certain problem in Flash and that is: well buttons are still clickable even when there is a Movie Clip over it.

Take for example if you have an MC that is draggable and you happen to drag it over a button. Sure the MC covers the button but it doesn’t disable it. It still is clickable. How can we go about this problem?

I’ve recently succeeded in making a Flash scrollbar complete with up and down arrows and scrollbar track it really functions like the real thing but when I pressed on the scrollbar, it moves unwantedly because the track is also clicked at the same time.

🥚 I don’t know I’m unhatched as of the moment!

:hangover:

---

<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: [May 23, 2003, 4:37am UTC](https://forum.kirupa.com/t/disabling-buttons-over-draggable-mcs/21493/2 "2003-05-23T04:37:45Z")

</div>

To disable the button try to perform a hit test between the Dragable MC and the button underneath. Then say if the hittest=1 then tell target goto and stop 2  
hittest=0 then tell target goto and stop 1  
“Put the button into a MC and put two frames in the MC, the first frame containes an active button and the second frame containes a nonactive clone of the button.”  
Of course, the above is not the actuall scripting but I hope you get the idea. If you want I could try it out over the weekend for you.:thumb:

---

<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: [May 23, 2003, 4:54am UTC](https://forum.kirupa.com/t/disabling-buttons-over-draggable-mcs/21493/3 "2003-05-23T04:54:27Z")

</div>

actually I know how to do that it’s just that for that simple a fact it should have been done by Macromedia themselves. I don’t know I just removed the code on my scrollbars track to solve the problem. I think they try to compensate for this by providing us with components. But I really don’t like using them. 🙂

Thanks man for the help!

BTW your footer is great but I think you should follow the footer size and rules so it would not be replaced with a Kirupa footer say: “footer does not adhere to rules” or something. Hopw you win! 🙂

---

<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: [May 23, 2003, 7:00am UTC](https://forum.kirupa.com/t/disabling-buttons-over-draggable-mcs/21493/4 "2003-05-23T07:00:43Z")

</div>

Thanks for lettn me know!! 🙂 I thought I already changed it, but i guess not. Hey, by any chance do you know why my thread is “locked” in the footer contest section??? I was hoping to get some feedback, but for some reason you cant post on it!!:crazy:

---

<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: [May 23, 2003, 7:11am UTC](https://forum.kirupa.com/t/disabling-buttons-over-draggable-mcs/21493/5 "2003-05-23T07:11:18Z")

</div>

I think the mods closed it. I don’t know. But they are the only one capable of locking or closing of threads! 😛

:beam:
