# Check if function is not being used

**URL:** https://forum.kirupa.com/t/check-if-function-is-not-being-used/331204
**Category:** flash
**Created:** [June 12, 2013, 7:40pm UTC](https://forum.kirupa.com/t/check-if-function-is-not-being-used/331204 "2013-06-12T19:40:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![BindleStick](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@BindleStick](https://forum.kirupa.com/u/BindleStick)
#### Post date: [June 12, 2013, 7:40pm UTC](https://forum.kirupa.com/t/check-if-function-is-not-being-used/331204/1 "2013-06-12T19:40:18Z")

</div>

Hey all,

I am wondering if there is a way to write an if statement that asks if a function is not currently being used. For instance, I have a couple of buttons. If one is clicked, I have a mouse event function that does something. I also have a boolean called Selected, which traces if it is currently the button clicked. When I click another one, that last button still comes up as true.
