Sizing Components - MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

Sizing components

Use the Free Transform tool or the
method to resize component instances.
setSize()
Resizing the Menu component on the Stage with the Free Transform tool
You can call the
method from any component instance (see
setSize()
UIObject.setSize()
on page
823) to resize it. The following code resizes the Menu component to 200 pixels wide and
300 pixels high:
myMenu.setSize(200, 300);
Note: If you use the ActionScript
and
properties to adjust the width and height of a
_width
_height
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.
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
Chapter 6,
"Components Dictionary," on page
91.

Sizing components

49

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents