Type (Textfield.type Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

var my_text1:TextField = this.createTextField("my_text1",
this.getNextHighestDepth(), 10, 10, 300, 30);
my_text1.text = "thickness = 200";
my_text1.antiAliasType = "advanced";
my_text1.border = true;
my_text1.thickness = 200;
my_text1.embedFonts = true;
my_text1.setTextFormat(my_format);
var my_text2:TextField = this.createTextField("my_text2",
this.getNextHighestDepth(), 10, 50, 300, 30);
my_text2.text = "thickness = -200."
my_text2.antiAliasType = "advanced";
my_text2.thickness = -200;
my_text2.border = true;
my_text2.embedFonts = true;
my_text2.setTextFormat(my_format);
If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
used in this example.
See also
antiAliasType (TextField.antiAliasType 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 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";
1220
ActionScript classes
MovieClip.getNextHighestDepth()
"dynamic"
"input"
username_txt
has the
password_txt
method, which is
, which specifies a dynamic
, which specifies an input text field.
and
password_txt
property set to
password
password_txt
. 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?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF