# Logic / disable clicking

**URL:** <https://forum.kirupa.com/t/logic-disable-clicking/304602>\
**Category:** Uncategorized\
**Created:** [February 10, 2010, 5:28pm UTC](https://forum.kirupa.com/t/logic-disable-clicking/304602 "2010-02-10T17:28:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexWD](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@AlexWD](https://forum.kirupa.com/u/AlexWD)\
**Post date:** [February 10, 2010, 5:28pm UTC](https://forum.kirupa.com/t/logic-disable-clicking/304602/1 "2010-02-10T17:28:49Z")

</div>

I have a dialog box object, every time a dialog box is created I want to disable clicking on everything else until it’s closed. I was thinking about doing …mouseChildren = false;, but because the dialog box is a child of that itself it wouldn’t work out too well. Is there an easier way to disable mouse events on only certain things?

I know I could add this as a separate child directly to my main displayobject, aside from the rest of the GUI, but is that the best way?
