F > FListBox.setRowCount |
![]() ![]() ![]() |
FListBox.setRowCount
Availability
Flash Player 6.
Usage
myListBox
.setRowCount(
rows
)
Parameters
rows
The maximum number of rows displayed in the list box.
Returns
Nothing.
Description
Method; specifies the number of items displayed in the list box. If you use this method, use FListBox.setWidth
, not FListBox.setSize
, to set the width of the list box. Calling FListBox.setSize
overrides the Row Count parameter value set during authoring. Therefore, if you call this method after calling FListBox.setRowCount
, your movie will disregard the rowCount
setting and set the height of the list box in pixels.
Example
The following code sets the number of items displayed in toyList
to 4.
toyList
.setRowCount(4);
See also
FListBox.getRowCount
, FListBox.setSize
![]() ![]() ![]() |