Using ActionScript 3.0 Components |
|
|
|
| Customizing the UI Components > Customizing the TextArea | |||
You can transform a TextArea 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. At run time, use the setSize() method or any applicable properties, such as height, width, scaleX and scaleY of the TextArea class.
When a TextArea component is resized, the border is resized to the new bounding box. The scroll bars are placed on the bottom and right edges if they are required. The text area is then resized within the remaining area; there are no fixed-size elements in a TextArea component. If the width of the TextArea component is too narrow to display the size of the text, the text is clipped.
|
|
|
|