# If/While Mouse Is Down

**URL:** <https://forum.kirupa.com/t/if-while-mouse-is-down/227006>\
**Category:** flash\
**Created:** [May 25, 2007, 7:25pm UTC](https://forum.kirupa.com/t/if-while-mouse-is-down/227006 "2007-05-25T19:25:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeoKent](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/leokent/32/3658_2.png) [@LeoKent](https://forum.kirupa.com/u/LeoKent)\
**Post date:** [May 25, 2007, 7:25pm UTC](https://forum.kirupa.com/t/if-while-mouse-is-down/227006/1 "2007-05-25T19:25:01Z")

</div>

Within an onPress function I need to check whether the mouse is still down or if it has been released. I have searched but can find no neat way if doing this, is there one? Or will I need to use an onRelease function to detect it?
