Additions to Senocular's XML menu

I’ve been making alterations to Senocular’s XML menu:
http://www.kirupa.com/developer/actionscript/xml_dropdown_menu.htm

For one thing, I make the submenus persistent (you have to click another main menu item to load a different submenu).

There are 2 functions that I’m having lots of trouble with:

  1. I need to make an arrow appear next to the menu item on click, and when another menu item is selected a new arrow appears by that item and the old arrow disappears. In the attached script you’ll see a reference to “this.arrow._visible = true;” which makes an arrow appear next to the appropriate item. The problem is, I’ve found no way to hide the arrows once they are created. I assumed that all arrows should be made to disappear “onPress” but the single arrow should appear “onRelease”. I’m definitely confused about how to reference the arrow instances within the clips.

  2. I need to place the 3rd level submenu 29 pixels below the 2nd level submenu but I can’t figure out how to reference the coordinates of the last created menu item in whatever 2nd level submenu happens to be present (since the different 2nd level submenus have different numbers of items). My brain’s melted at this point.