F > FComboBox.getScrollPosition

 

FComboBox.getScrollPosition

Availability

Flash Player 6.

Usage

myComboBox.getScrollPosition()

Parameters

None.

Returns

An integer.

Description

Method; returns the index position of the item currently displayed at the top of the combo box list.

The ComboBox component uses a zero-based index, where the item at index 0 is displayed at the top of the list.

Example

The following code retrieves the index of the item currently at the top of the list in toyList and stores it in the variable scrollPos.

var scrollPos = toyList.getScrollPosition();

See also

FComboBox.setSelectedIndex