ComboBox.rowCount

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

myComboBox.rowCount

Description

Property; the maximum number of rows visible in the drop-down list. The default value is 5.

If the number of items in the drop-down list is greater than or equal to the rowCount property, it resizes and a scroll bar is displayed if necessary. If the drop-down list contains fewer items than the rowCount property, it resizes to the number of items in the list.

This behavior differs from the List component, which always shows the number of rows specified by its rowCount property, even if some empty space is shown.

If the value is negative or fractional, the behavior is undefined.

Example

The following example specifies that the combo box should have 20 or fewer rows visible:

myComboBox.rowCount = 20;