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
The parameter can have any of the following four values:
, which specifies that the label is not resized or aligned to fit the text.
none
, which specifies that the right and bottom sides of the label are resized to fit the text.
left
The left and top sides are not resized.
, which specifies that the left and right sides of the label resize to fit the text. The
center
horizontal center of the label stays anchored at its original horizontal center position.
, which specifies that the left and bottom sides of the label are resized to fit the text.
right
The top and right side are not resized.
The
autoSize
property of the built-in ActionScript TextField object.
html
indicates whether the label is formatted with HTML (
parameter is set to
true
as HTML using the
font
text
indicates the text of the label; the default value is
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 (
The default value is
true
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.
You can write ActionScript to set additional options for Label instances using its methods,
properties, and events. For more information, see
752
Label component
property of the Label component is different from the
, a label cannot be formatted with styles, but you can format the text
tag. The default value is
.
) or not (
true
.
false
.
Label
true
"Label class" on page
.
none
autoSize
). If this
false
) or not (
).
false
755.
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers