# Mouse pass through

**URL:** <https://forum.kirupa.com/t/mouse-pass-through/248889>\
**Category:** flash\
**Created:** [January 12, 2008, 10:58pm UTC](https://forum.kirupa.com/t/mouse-pass-through/248889 "2008-01-12T22:58:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JasonBoBason](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@JasonBoBason](https://forum.kirupa.com/u/JasonBoBason)\
**Post date:** [January 12, 2008, 10:58pm UTC](https://forum.kirupa.com/t/mouse-pass-through/248889/1 "2008-01-12T22:58:15Z")

</div>

I have a button on one layer of my page, and I have a semi-transparent rectangle over the top of the whole stage to simulate darkness at certain times.

The problem is that the rectangle receives the mouse clicks rather than passing them through to the bottom on the layer below.

Is there a way to tell the rectangle or layer that it should pass through all events?

I have seen this called the “glass pane” in other languages.

Thanks!

Jason
