User Guide
TextField 685
The custom tab ordering defined by the tabIndex property is flat. This means that no
attention is paid to the hierarchical relationships of objects in the SWF file. All objects in the
SWF file with
tabIndex properties are placed in the tab order, and the tab order is
determined by the order of the
tabIndex values. If two objects have the same tabIndex
value, the one that goes first is
undefined. You should not use the same tabIndex value for
multiple objects.
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following ActionScript dynamically creates four text fields and assigns them to a custom
tab order. Add the following ActionScript to your FLA or ActionScript file:
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";
one_txt.tabIndex = 3;
two_txt.tabIndex = 1;
three_txt.tabIndex = 2;
four_txt.tabIndex = 4;
See also
tabIndex (Button.tabIndex property), tabIndex (MovieClip.tabIndex property)
_target (TextField._target property)
public _target : String [read-only]
The target path of the text field instance. The _self target specifies the current frame in the
current window,
_blank specifies a new window, _parent specifies the parent of the current
frame, and
_top specifies the top-level frame in the current window.
Availability: ActionScript 1.0; Flash Lite 2.0