# Isolating or targeting events of the Flash v2 menuBar

**URL:** <https://forum.kirupa.com/t/isolating-or-targeting-events-of-the-flash-v2-menubar/247094>\
**Category:** flash\
**Created:** [December 18, 2007, 3:27pm UTC](https://forum.kirupa.com/t/isolating-or-targeting-events-of-the-flash-v2-menubar/247094 "2007-12-18T15:27:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SamSax](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@SamSax](https://forum.kirupa.com/u/SamSax)\
**Post date:** [December 18, 2007, 3:27pm UTC](https://forum.kirupa.com/t/isolating-or-targeting-events-of-the-flash-v2-menubar/247094/1 "2007-12-18T15:27:54Z")

</div>

I’m stuck on a small but for me a challenging problem in my first serious attempts at integrating V2 components into my app with AS2 .

I’m using the menuBar component and some of the items of the parent menu have sub-menus.

I am also using listeners with the menuShow and / or menuHide events.

Unfortunately, these listeners are being called when both the main menu AND any of its submenus are closed / opened.

How can I isolate or target just the parent menu and exclude the sub-menus from triggering actions defined in my listeners?

Please let me know if a more detailed account of what I am trying to accomplish and code thus far used would be helpful.

Thanks!
