tabIndex

I have some text fields and I’m trying to set the tab index of each like so:

 _root.mytextfield.tabIndex(1);

but when I am tabbing through my form I get those stupid yellow boxes and it doesn’t acknowledge the tab order I have specified.
What am I doing wrong