F > FListBox.getSelectedIndices |  |

FListBox.getSelectedIndices

FListBox, FListBox.getSelectedIndices, getSelectedIndices

Availability

Flash Player 6.

Usage

    myListBox.getSelectedIndices()

Parameters

None.

Returns

An array or `undefined`.

Description

Method; returns the indexes of the currently selected items in a multiple-selection list box as an array, or returns `undefined` if no items are selected.

Example

The following code returns the indexes of the currently selected items in the multiple-selection list box `groceryList` as an array.

    groceryList.getSelectedIndices();

See also

`FListBox.getSelectedIndex`, `FListBox.setSelectMultiple`