
TextField.tabIndex Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
872
|
ActionScript Language Reference
// Create the fields
this.createTextField("field1_txt", 1, 40, 70, 100, 20);
field1_txt.border = true;
field1_txt.type = "input";
this.createTextField("field2_txt", 2, 150, 70, 100, 20);
field2_txt.border = true;
field2_txt.type = "input";
field2_txt.tabEnabled = false;
See Also
Button.tabEnabled, MovieClip.tabChildren, MovieClip.tabEnabled, TextField.tabIndex,
TextField.type
TextField.tabIndex Property
specifies the text field’s index in the custom tab order
Flash 6
read/write
theField.tabIndex
Description
The integer tabIndex property specifies theField’s position in the custom tab order. When
no text field, clip, or button has a
tabIndex property defined, Flash determines tab order
automatically and pressing the Tab key moves focus between buttons and input text fields
from right to left, then top to bottom. We use the
tabIndex property to force Tab key navi-
gation to follow our own sequence, overriding the automatic order. For example, a custom
tab order can change a two-column table of input text fields from “row-by-row” to
“column-by-column” navigation. Or, it can completely curtail keyboard access to an input
text field, movie clip, or button.
To create a custom tab order, we assign an integer
tabIndex priority to each object ...