Flash Form Tab Index

I have a form that works fine except that when trying to navigate through input text fields with tab it would skip the last input text field and go to the submit button.

So I used this to fix the problem:

name.tabIndex = 1;

and so forth. Now that problem is fix but I have a new problem. When I test the movie the input fields are populated with this:

_level0.instance1.name

Does anyone know the reason for the? Any help would be much appreciated