User Guide

Deleting components from Flash documents 57
You can call the setSize() method from any component instance (see UIObject.setSize()
on page 1341) to resize it. The following code resizes the TextArea component to 200 pixels
wide and 300 pixels high:
myTextArea.setSize(200, 300);
A component does not resize automatically to fit its label. If a component instance that has
been added to a document is not large enough to display its label, the label text is clipped. You
must resize the component to fit its label.
A clipped label for the CheckBox component
For more information about sizing components, see their individual entries in the Components
Language Reference.
Deleting components from
Flash documents
To delete a component’s instances from a Flash document, you must delete the component
from the library by deleting the compiled clip icon. It isn’t enough to delete the component
from the Stage.
To delete a component from a document:
1. In the Library panel, select the compiled clip (SWC) symbol.
2. Click the Delete button at the bottom of the Library panel, or select Delete from the
Library options menu.
3. In the Delete dialog box, click Delete to confirm the deletion.
NOTE
If you use the ActionScript _width and _height properties to adjust the width and height
of a component, the component is resized but the layout of the content in the
component remains the same. This might cause the component to be distorted in
movie playback.