Password (Textfield.password Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

password (TextField.password property)

public password : Boolean
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 Player 6
Example
The following example creates two text fields:
entered into both text fields; however,
Therefore, the characters display as asterisks instead of as characters in the
field.
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";
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
1198
ActionScript classes
, the text field is not a password text field. When password mode is
username_txt
password_txt
method used in this example requires Flash Player
MovieClip.getNextHighestDepth()
and
password_txt
has the password property set to
password_txt
method.
, the
true
. Text is
.
true

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF