# XML menu - tabIndex for accessablility

**URL:** <https://forum.kirupa.com/t/xml-menu-tabindex-for-accessablility/209202>\
**Category:** flash\
**Created:** [December 6, 2006, 7:39pm UTC](https://forum.kirupa.com/t/xml-menu-tabindex-for-accessablility/209202 "2006-12-06T19:39:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zaid\_W1red](https://avatars.discourse-cdn.com/v4/letter/z/cab0a1/32.png) [@Zaid\_W1red](https://forum.kirupa.com/u/Zaid_W1red)\
**Post date:** [December 6, 2006, 7:39pm UTC](https://forum.kirupa.com/t/xml-menu-tabindex-for-accessablility/209202/1 "2006-12-06T19:39:25Z")

</div>

Hey Guys,

I’ve tried adding the follwing to the awesome XML menu tutorial here on kirupa to make it navigatable by the keyboard:

At the top of the as:

var myTabIndex:Number = 1;

and then in the loops that creates the items:  
curr\_item.tabIndex = myTabIndex;  
myTabIndex++

Crude I know but it seemed to be the right logic!

The problem is the arrow still doesnt quite react how I would suspect, when tabbing aroudn the menu I instinctivly try and use the arrow keys and they dont seem to react as expected…does anyone have any suggestions?

Many thanks  
Zaod
