User Guide

752 Label component
Label parameters
You can set the following authoring parameters for each Label component instance in the
Property inspector or in the Component inspector (Window > Component Inspector
menu option):
autoSize indicates how the label is sized and aligned to fit the text. The default value is none.
The parameter can have any of the following four values:
none, which specifies that the label is not resized or aligned to fit the text.
left, which specifies that the right and bottom sides of the label are resized to fit the text.
The left and top sides are not resized.
center, which specifies that 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, which specifies that the left and bottom sides of the label are resized to fit the text.
The top and right side are not resized.
html indicates whether the label is formatted with HTML (true) or not (false). If this
parameter is set to
true, a label cannot be formatted with styles, but you can format the text
as HTML using the
font tag. The default value is false.
text indicates the text of the label; the default value is Label.
You can set the following additional parameters for each Label component instance in the
Component inspector (Window > Component Inspector):
visible is a Boolean value that indicates whether the object is visible (true) or not (false).
The default value is
true.
You can write ActionScript to set additional options for Label instances using its methods,
properties, and events. For more information, see “Label class” on page 755.
NOTE
The autoSize property of the Label component is different from the autoSize
property of the built-in ActionScript TextField object.
NOTE
The minHeight and minWidth properties are used by internal sizing routines. They are
defined in UIObject, and are overridden by different components as needed. These
properties can be used if you make a custom layout manager for your application.
Otherwise, setting these properties in the Component inspector has no visible effect.