Textwidth (Textfield.textwidth Property); Type (Textfield.type Property) - MACROMEDIA FLASHLITE2 ACTIONSCRIPT-LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

See also

textWidth (TextField.textWidth property)

textWidth (TextField.textWidth property)
public textWidth :
Indicates the width of the text.
Availability: ActionScript 1.0; Flash Lite 2.0
Example
See the example for
TextField.textHeight
See also
textHeight (TextField.textHeight property)

type (TextField.type property)

public type :
String
Specifies the type of text field. There are two values:
text field that cannot be edited by the user, and
Availability: ActionScript 1.0; ActionScript 1.0; Flash Lite 2.0
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";
688
ActionScript classes
Number
password_txt
.
, which specifies a dynamic
"dynamic"
, which specifies an input text field.
"input"
and
username_txt
has the
password
. Text is
password_txt
property set to
password_txt
.
true

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash lite 2

Table of Contents