Textfield.password - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

TextField.password

Availability
Flash Player 6.
Usage
my_txt.password:Boolean
Description
Property; if the value of
input characters using asterisks instead of the actual characters. If
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.
Example
The following example creates two text fields:
into both text fields; however,
the characters display as asterisks instead of as characters in the
this.createTextField("username_txt", this.getNextHighestDepth(), 10, 10, 100,
22);
username_txt.border = true;
username_txt.type = "input";
username_txt.maxChars = 16;
username_txt.text = "hello";
this.createTextField("password_txt", this.getNextHighestDepth(), 10, 40, 100,
22);
password_txt.border = true;
password_txt.type = "input";
password_txt.maxChars = 16;
password_txt.password = true;
password_txt.text = "world";
is
, the text field is a password text field and hides the
password
true
username_txt
has the
password_txt
, the text field is not a
false
and
password_txt
property set to
password
password_txt
TextField.password
. Text is entered
. Therefore,
true
field.
907

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash mx

Table of Contents