MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 757

Actionscript language reference
Table of Contents

Advertisement

trace("after my_txt.autoSize = true;");
trace("_height: "+my_txt._height+", _width: "+my_txt._width);
Which outputs the following information:
textHeight: 15, textWidth: 56
_height: 300, _width: 100
after my_txt.autoSize = true;
_height: 19, _width: 60
See Also
TextField.textWidth
TextField.textWidth
Availability
Flash Player 6.
Usage
my_txt.textWidth:Number
Description
Property; indicates the width of the text.
Example
See the example for
See Also
TextField.textHeight
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);
TextField.textHeight
password_txt
.
"dynamic"
, which specifies an input
"input"
and
username_txt
password_txt
has the
property set to
password
password_txt
, which specifies a
. Text is entered
. Therefore,
true
field.
TextField.type
757

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Flex

Table of Contents