# Button not working inside draggable mc

**URL:** https://forum.kirupa.com/t/button-not-working-inside-draggable-mc/189040
**Category:** Uncategorized
**Created:** [May 12, 2006, 7:09pm UTC](https://forum.kirupa.com/t/button-not-working-inside-draggable-mc/189040 "2006-05-12T19:09:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dru\_nasty](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@dru\_nasty](https://forum.kirupa.com/u/dru_nasty)
#### Post date: [May 12, 2006, 7:09pm UTC](https://forum.kirupa.com/t/button-not-working-inside-draggable-mc/189040/1 "2006-05-12T19:09:04Z")

</div>

K, so I’ve got a button inside a mc. The mc is made draggable via some script on the main timeline:

```auto

mc_instance_name.onPress=function(){
this.startDrag();
}
mc_instance_name.onRelease=function(){
this.stopDrag();
}

Works fine. (this is an attachMovie clip by the way).
So i put an invisible button inside this movieclip so when pressed it would close the mc (removeMovieClip();)

Doesn't work now since the mc is now draggable. I've tried different ways to hitTest but nothing working.

Any ideas?
```
