User Guide

TextField 1219
textWidth (TextField.textWidth property)
public textWidth : Number
Indicates the width of the text.
Availability: ActionScript 1.0; Flash Player 6
Example
See the example for
TextField.textHeight.
See also
textHeight (TextField.textHeight property)
thickness (TextField.thickness property)
public thickness : Number
The thickness of the glyph edges in this TextField instance. This property applies only when
antiAliasType() is set to "advanced".
The range for
thickness is a number from -200 to 200. If you attempt to set thickness to a
value outside that range, the property is set to the nearest value in the range (either -200 or
200).
Availability: ActionScript 1.0; Flash Player 8
Example
This example creates two text fields and applies a
thickness of -200 to one and 200 to the
other. It assumes that you have a font embedded in the Library with the linkage identifier set
to
"Times-12". To embed the font, follow these steps:
Open your Library
Click the Library options menu in the upper right corner of the Library
Select "New Font" from the dropdown list
Name the font "Times-12"
Select "Times New Roman" from the font dropdown list
Press the "OK" button
Right-click on the newly created font and select "Linkage..."
Check the "Export for ActionScript" box
Accept the default identifier "Times-12" by pressing the "OK" button
var my_format:TextFormat = new TextFormat();
my_format.font = "Times-12";