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

Actionscript language reference
Table of Contents

Advertisement

TextField.type

Availability
Flash Player 6.
Usage
my_txt.type:String
Description
Property; Specifies the type of text field. There are two values:
dynamic text field that cannot be edited by the user, and
text field.
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";
930
Chapter 2: ActionScript Language Reference
username_txt
has the
password_txt
, which specifies a
"dynamic"
, which specifies an input
"input"
and
password_txt
property set to
password
password_txt
. Text is entered
. Therefore,
true
field.

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?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents