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".

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";