F > FComboBox.setRowCount

 

FComboBox.setRowCount

Availability

Flash Player 6.

Usage

myComboBox.setRowCount(rows)

Parameters

rows The maximum number of rows that the drop-down list can display without scrolling.

Returns

Nothing.

Description

Method; sets the number of items that can be seen in the combo box's drop-down list without scrolling. The minimum value for the rows parameter is 3. Calling this method overrides the Row Count parameter value set during authoring.

Example

The following code sets the number of items displayed in the drop-down list of menuMain to 4.

menuMain.setRowCount(4);

See also

FComboBox.setSize