# Storing clicked menuItem from a V2 menuBar

**URL:** <https://forum.kirupa.com/t/storing-clicked-menuitem-from-a-v2-menubar/85065>\
**Category:** flash\
**Created:** [April 1, 2005, 2:05pm UTC](https://forum.kirupa.com/t/storing-clicked-menuitem-from-a-v2-menubar/85065 "2005-04-01T14:05:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrmastermind](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@mrmastermind](https://forum.kirupa.com/u/mrmastermind)\
**Post date:** [April 1, 2005, 2:05pm UTC](https://forum.kirupa.com/t/storing-clicked-menuitem-from-a-v2-menubar/85065/1 "2005-04-01T14:05:58Z")

</div>

Is there a way to store the clicked menuItem index of a clicked menuItem on a menuBar component?

I need to be able to create a previous and next button that relates to the currently clicked menuItem of a menuBar. My menuBar dataprovider is an XML file. So I’m thinking it should be possible to show the nextSibling or previousSibling according to the clicked menuItem of a menuBar
