Building a drop-down menu (need help).

I'm building a drop-down menu for an upcoming project.
It's working great as it is now, but it misses one important feature: i want the drop-down to collapse when clicking outside of the menu's boundaries. So basically anywhere else in the GUI, by way of a Mouse Area covering the width and height of the GUI and layered at the bottom.
I've been trying a boatload of options, but i can't get it to work. Though i'm sure the solution will be very very simple.
This is what i have so far:
Browsable menu that appears when clicking the "currently selected" rectangle, and disappears when making a selection on the drop-down menu.
on/off macro with stacked macro.
Stacked macro of the on/off macro.
Stacked macro of the Browse macro.
Here's a file of the menu:
Any and all help is very much appreciated!
Greets,
Bolle
Categories
- All Categories
- 18 Welcome
- 1.6K Hangout
- 66 NI News
- 863 Tech Talks
- 4.4K Native Access
- 17.7K Komplete
- 2.1K Komplete General
- 4.7K Komplete Kontrol
- 6.1K Kontakt
- 1.6K Reaktor
- 399 Battery 4
- 896 Guitar Rig & FX
- 456 Massive X & Synths
- 1.4K Other Software & Hardware
- 6.2K Maschine
- 7.9K Traktor
- 7.9K Traktor Software & Hardware
- Check out everything you can do
- Create an account
- See member benefits
- Answer questions
- Ask the community
- See product news
- Connect with creators