Label.autosize; Label.html - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

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
property. There are four possible values:
default value is
"none"
The label is not resized or aligned to fit the text.
none
The right and bottom sides of the label are resized to fit the text. The left and top
left
sides are not resized.
The left and right sides of the label resize to fit the text. The horizontal center of
center
the label stays anchored at its original horizontal center position.
The left and bottom sides of the label are resized to fit the text. The top and right
right
sides are not resized.
The
autoSize
property of the built-in ActionScript TextField object.
Example
In following example, the label instance
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.
758
Label component
"none"
.
property of the Label component is different from the
my_label
,
,
, and
"left"
"center"
resizes the left and bottom sides of the label
text
. The
"right"
autoSize

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents