# How to always trigger MOUSE\_UP with custom button class?

**URL:** <https://forum.kirupa.com/t/how-to-always-trigger-mouse-up-with-custom-button-class/233977>\
**Category:** flash\
**Created:** [July 29, 2007, 1:11am UTC](https://forum.kirupa.com/t/how-to-always-trigger-mouse-up-with-custom-button-class/233977 "2007-07-29T01:11:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SupSuper](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/supsuper/32/3935_2.png) [@SupSuper](https://forum.kirupa.com/u/SupSuper)\
**Post date:** [July 29, 2007, 1:11am UTC](https://forum.kirupa.com/t/how-to-always-trigger-mouse-up-with-custom-button-class/233977/1 "2007-07-29T01:11:09Z")

</div>

So, I wrote a custom button class derived off of MovieClip to handle my own special kind of buttons since Flash’s classes didn’t fit my purposes.

It works just like a regular button, except… if you let go the mouse button when outside the button, the button will remain “pressed”. This doesn’t happen with Flash’s buttons, so how do I mimic this behavior?
