F > FListBox.setSize

 

FListBox.setSize

Availability

Flash Player 6.

Usage

myListBox.setSize(width, height)

Parameters

width An integer specifying the width of the list box, in pixels.

height An integer specifying the height of the list box, in pixels.

Returns

Nothing.

Description

Method; resizes the list box at runtime to the specified width and height. Calling this method overrides the Row Count parameter value set during authoring. Therefore, if you call this method after calling FListBox.setRowCount, your movie will set the height of the list box in pixels and disregard the rowCount setting. To set the width of a list box when you are using setRowCount, use FListBox.setWidth.

Example

The following code resizes phoneList to measure 200 pixels in width and 50 pixels in height.

phoneList.setSize(200, 50);

See also

FListBox.setRowCount, FListBox.setWidth