User Guide

UIObject.setSize() 1381
UIObject.setSize()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
componentInstance.setSize(width, height, noEvent)
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.
noEvent A Boolean value that indicates whether the resize event should be dispatched.
Returns
Nothing.
Description
Method; resizes the object to the requested size. You should pass only integer values to
UIObject.setSize(), or the component may appear fuzzy. This method (as with all
methods and properties of UIObject) is available from any component instance.
When you call this method on a ComboBox instance, the combo box is resized and the
rowHeight property of the contained list also changes.
Example
The following example resizes the pBar component instance to 100 pixels wide and 100
pixels high:
pBar.setSize(100, 100);
NOTE
Some components allow you to modify height or width dimensions only. For example,
the CheckBox and RadioButton components do not allow you to modify the height.