# Adding a non-clickable background to a set of buttons

**URL:** <https://forum.kirupa.com/t/adding-a-non-clickable-background-to-a-set-of-buttons/265900>\
**Category:** flash\
**Created:** [July 14, 2008, 1:18pm UTC](https://forum.kirupa.com/t/adding-a-non-clickable-background-to-a-set-of-buttons/265900 "2008-07-14T13:18:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![derm116](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@derm116](https://forum.kirupa.com/u/derm116)\
**Post date:** [July 14, 2008, 1:18pm UTC](https://forum.kirupa.com/t/adding-a-non-clickable-background-to-a-set-of-buttons/265900/1 "2008-07-14T13:18:54Z")

</div>

Hi all,

I’ve created an as navigation panel similar to the one on google maps to navigate around a bubble chart created in Flex. The problem I’m having is that when there is a bubble(s) behind a button been clicked I end up selecting that bubble(s) as well!

What I’m looking for is some way to put a see-through background behind the nav panel so that bubbles in or around the buttons can’t be selected? I’ve tried putting all the buttons on a canvas and placing also them all on a larger button but so far no luck! I still manage to select bubbles when clicking on a button!

Does anyone have any ideas how I might stop this from happening?

Thanks,  
Derm

---

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [July 14, 2008, 2:21pm UTC](https://forum.kirupa.com/t/adding-a-non-clickable-background-to-a-set-of-buttons/265900/2 "2008-07-14T14:21:52Z")

</div>

I’m not quite sure I read your question properly, but if something is blocking your mouse events just put mouseEnabled = false on it ? oO

---

<div class="post-metadata">

**Author:** ![derm116](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@derm116](https://forum.kirupa.com/u/derm116)\
**Post date:** [July 14, 2008, 3:27pm UTC](https://forum.kirupa.com/t/adding-a-non-clickable-background-to-a-set-of-buttons/265900/3 "2008-07-14T15:27:14Z")

</div>

No my mouse events aren’t been blocked - what’s happening is when I click a button (say the left arrow to pan left), if there is a bubble under the button the bubble gets selected as well. I want my bubbles to be selectable in the chart as I have click and double click events defined for my bubbles but I want to lock the area around my navigation buttons so that if I’m clicking a button I don’t also select what’s behind the button.

At the moment I have event listeners on the button which set the selectability of the bubbles to false when the button is pushed and back to true when the mouse click event has fired. I was wondering if there was any easier way to do this as I don’t want to turn off the bubble selection functinality?!
