User Guide

TextField 671
Example
The following ActionScript creates two text fields and outputs information about the
_parent of each object. The first text field, first_txt, is created on the main Timeline. The
second text field,
second_txt, is created inside the movie clip called holder_mc.
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), _parent (MovieClip._parent property)
password (TextField.password property)
public password : Boolean
Specifies whether the text field is a password text field. If the value of password is true, the
text field is a password text field and hides the input characters using asterisks instead of the
actual characters. If
false, the text field is not a password text field. When password mode is
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