Need Tab Index Help!

I need to change focus in a certain order between different types of components. The problem is on a few components I can’t get focus to leave when tab is pressed. I’m sure there is a solution to this problem but I can’t figure it out. Can someone please provide some AS or an explanation?

Selection.setFocus(“text1_txt”);
text1_txt.tabIndex = 1;
text2_txt.tabIndex = 2;
text3_txt.tabIndex = 3;

Perhaps I didn’t explain this well enough…

To start off with I have 8 text fields, 1 combo box, and 2 buttons. If I create a tab index using the method in the above reply with only the text boxes it works fine. However, if the combo box is say, indexed as 8 and the buttons are indexed as 10 and 11, pressing tab works untill the combo box has focus. Once the combo box has focus pressing tab does nothing. If I then click on the text box with the tab index of 9 so it has focus and then press tab the focus is set to the button with the index of 10, which it obviously should be. However, like the combo box pressing tab when it has focus does not change the focus to the next button, or anything else.

So basicly focus will change from a text box to another component but not from another component to a text box.

Someone please help if its possible. Thanks in advance.