ActionScript 2.0 Components Language Reference |
|
|
|
| Label component > Label.autoSize | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004.
labelInstance.autoSize
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. |
NOTE |
The |
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";
|
|
|
|