Example
The following ActionScript creates two text fields and outputs information about the
of each object. The first text field,
_parent
second text field,
second_txt
this.createTextField("first_txt", this.getNextHighestDepth(), 10, 10, 160,
22);
first_txt.border = true;
trace(first_txt._name+"'s _parent is: "+first_txt._parent);
this.createEmptyMovieClip("holder_mc", this.getNextHighestDepth());
holder_mc.createTextField("second_txt", holder_mc.getNextHighestDepth(),
10, 40, 160, 22);
holder_mc.second_txt.border = true;
trace(holder_mc.second_txt._name+"'s _parent is:
"+holder_mc.second_txt._parent);
The following information is displayed in the Output panel:The following information writes
to the log file:
first_txt's _parent is: _level0
second_txt's _parent is: _level0.holder_mc
See also
_parent (Button._parent property)
password (TextField.password property)
public password :
Specifies whether the text field is a password text field. If the value of password is
text field is a password text field and hides the input characters using asterisks instead of the
actual characters. If
false
enabled, the Cut and Copy commands and their corresponding keyboard accelerators will not
function. This security mechanism prevents an unscrupulous user from using the shortcuts to
discover a password on an unattended computer.
Availability: ActionScript 1.0; Flash Lite 2.0
, is created inside the movie clip called
,
_parent (MovieClip._parent property)
Boolean
, the text field is not a password text field. When password mode is
, is created on the main Timeline. The
first_txt
.
holder_mc
, the
true
TextField
671
Need help?
Do you have a question about the FLASHLITE2 ACTIONSCRIPT-LANGUAGE and is the answer not in the manual?