Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tabIndex Problem - Will not focus or show cursor at all 1

Status
Not open for further replies.

Happy2003

Technical User
Jan 2, 2003
3
US
I have been trying to set the initial focus and tab order on my Flash MX movie and it does not seem to work. Here is the code:

Selection.setFocus(text_one);
text_one.tabIndex = 0;
text_two.tabIndex = 1;
text_three.tabIndex = 2;



text_one, text_two, and text_three are my instance names for the text fields and everything is on the root but when I try to view it there is no cursor in the text field and even if I click in the fields it shows no cursor and will not allow me to input text. Is the syntax incorrect in some way?
 
Check Selection.setFocus in the AS dictionary.

Selection.setFocus("_root.myVar");

The parameter is not the instance name of the textfield but the path of the variable associated to that textfield. Regards,

oldman3.gif
 
ok... I tried what you said and the focus is working but it still will not tab unless I click in the text field first. The cursor is blinking in the first field (oneT) upon entry and will allow me to enter text in that first field but when I hit TAB nothing happens. If I click in any of the text fields, then TAB starts working.

Here is my code:

Selection.setFocus("_root.oneT");
oneT.tabIndex = 1;
twoT.tabIndex = 2;
threeT.tabIndex = 3;


Any ideas?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top