F > FListBox.setWidth

 

FListBox.setWidth

Availability

Flash Player 6.

Usage

myListBox.setWidth(width)

Parameters

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

Returns

Nothing.

Description

Method; specifies the width of the list box, in pixels. This method is useful for setting the width of list box when FListBox.setRowCount is used to determine the height.

Example

The following code sets the width of the list box toyList to 500 pixels.

toyList.setWidth(500);

See also

FListBox.setSize