User Guide

758 Label component
Label.autoSize
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
labelInstance.autoSize
Description
Property; a string that indicates how a label is sized and aligned to fit the value of its text
property. There are four possible values:
"none", "left", "center", and "right". The
default value is
"none".
none The label is not resized or aligned to fit the text.
left The right and bottom sides of the label are resized to fit the text. The left and top
sides are not resized.
center The left and right sides of the label resize to fit the text. The horizontal center of
the label stays anchored at its original horizontal center position.
right The left and bottom sides of the label are resized to fit the text. The top and right
sides are not resized.
Example
In following example, the label instance my_label resizes the left and bottom sides of the label
to fit all the text:
my_label.text = "A really long label with Label.autoSize set";
my_label.autoSize = "right";
Label.html
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
NOTE
The autoSize property of the Label component is different from the autoSize
property of the built-in ActionScript TextField object.