User Guide
1214 ActionScript classes
If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
MovieClip.getNextHighestDepth() method, which is
used in this example.
See also
StyleSheet (TextField.StyleSheet)
tabEnabled (TextField.tabEnabled property)
public tabEnabled : Boolean
Specifies whether the text field is included in automatic tab ordering. It is undefined by
default.
If the
tabEnabled property is undefined or true, the object is included in automatic tab
ordering. If the
tabIndex property is also set to a value, the object is included in custom tab
ordering as well. If
tabEnabled is false, the object is not included in automatic or custom
tab ordering, even if the
tabIndex property is set.
Availability: ActionScript 1.0; Flash Player 6
Example
The following example creates several text fields, called
one_txt, two_txt, three_txt and
four_txt. The three_txt text field has the tabEnabled property set to false, so it is
excluded from the automatic tab ordering.
this.createTextField("one_txt", this.getNextHighestDepth(), 10, 10, 100,
22);
one_txt.border = true;
one_txt.type = "input";
this.createTextField("two_txt", this.getNextHighestDepth(), 10, 40, 100,
22);
two_txt.border = true;
two_txt.type = "input";
this.createTextField("three_txt", this.getNextHighestDepth(), 10, 70, 100,
22);
three_txt.border = true;
three_txt.type = "input";
this.createTextField("four_txt", this.getNextHighestDepth(), 10, 100, 100,
22);
four_txt.border = true;
four_txt.type = "input";
three_txt.tabEnabled = false;
three_txt.text = "tabEnabled = false;";