UIObject.setSize()

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

componentInstance.setSize(width, height)

Parameters

width A number that indicates the width of the object in pixels.

height A number that indicates the height of the object in pixels.

Returns

Nothing.

Description

Method; resizes the object to the requested size. You should only pass integral values to the UIObject.setSize() or the component may appear fuzzy. This method (and all methods and properties of UIObject) is available from any component instance.

When you call this method on an instance of the ComboBox, the combo box is resized and the rowHeight property of the contained list is also changed.

Example

This example resizes the pBar component instance to 100 pixels wide and 100 pixels high:

pBar.setSize(100, 100);