Customizing the Label

You can transform a Label component horizontally and vertically while authoring and at run time. While authoring, select the component on the Stage and use the Free Transform tool or any of the Modify > Transform commands. You can also set the autoSize authoring parameter; setting this parameter doesn't change the bounding box in the live preview, but the Label is resized. The Label is resized depending on the wordwrap parameter. If the parameter is true, the Label is resized vertically to fit the text. If the parameter is false, the Label is resized horizontally. At run time, use the setSize() method. For more information see the Label.setSize() method and Label.autoSize property in the ActionScript 3.0 Language and Components Reference. Also see Creating an application with the Label.

Related topics