# TabIndex/TabOrdering applied to movieclips?

**URL:** <https://forum.kirupa.com/t/tabindex-tabordering-applied-to-movieclips/162640>\
**Category:** flash\
**Created:** [September 15, 2005, 12:09am UTC](https://forum.kirupa.com/t/tabindex-tabordering-applied-to-movieclips/162640 "2005-09-15T00:09:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ozcar](https://avatars.discourse-cdn.com/v4/letter/o/8491ac/32.png) [@ozcar](https://forum.kirupa.com/u/ozcar)\
**Post date:** [September 15, 2005, 12:09am UTC](https://forum.kirupa.com/t/tabindex-tabordering-applied-to-movieclips/162640/1 "2005-09-15T00:09:01Z")

</div>

Hey guys, great forum - great site - very informative.

Essentially I have created a dynamic menu system with xml (read the nodes, attach movieclip, apply label etc). I am fairly (try extremely) novice at AS.

I want to be able to add tabOrdering functionality (like this tutorial [http://www.kirupa.com/developer/actionscript/taborder.htm](http://www.kirupa.com/developer/actionscript/taborder.htm)) but with these buttons created via the attachmovieclip loop as it reads the xml.

I tried using the new instance name given to each button, but I suspect it does not work because it is technically not a button. However it works with form elements so I am hoping I have just stuffed it up.

The main portion of the code which renders the buttons is as follows:

```auto

 
 
 
 
 
for (var i=0; i<items.length; i++) {
 
var buttons = items*.attributes.id;
 
 
var button_mc = bclip_mc.attachMovie("button_item","item"+item_count, item_count); 
button_mc._y = item_count * item_spacing; 
item_count++;
 
button_mc.label.text = buttons
 
 
}
 
 
 

```

I tried making the tabindex work with the item+item\_count (ie: item1, item2) through the loop but no joy.

Thanks for any help.
