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;
The
MovieClip.getNextHighestDepth()
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
See also
tabIndex (Button.tabIndex property)
_target (TextField._target property)
public _target : String [read-only]
The target path of the text field instance. The
current window,
_blank
frame, and
specifies the top-level frame in the current window.
_top
Availability: ActionScript 1.0; Flash Player 6
Example
The following ActionScript creates a text field called
the new field, in both slash and dot notation.
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 100,
22);
trace(my_txt._target); // output: /my_txt
trace(eval(my_txt._target)); // output: _level0.my_txt
The
MovieClip.getNextHighestDepth()
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
1216
ActionScript classes
method used in this example requires Flash Player
MovieClip.getNextHighestDepth()
,
tabIndex (MovieClip.tabIndex property)
specifies a new window,
method used in this example requires Flash Player
MovieClip.getNextHighestDepth()
target specifies the current frame in the
_self
specifies the parent of the current
_parent
and outputs the target path of
my_txt
method.
method.
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?