F > FListBox.getSelectedItems |
![]() ![]() ![]() |
FListBox.getSelectedItems
Availability
Flash Player 6.
Usage
myListBox
.getSelectedItems()
Parameters
None.
Returns
An array or undefined
.
Description
Method; returns the currently selected items as an array of objects with the properties label
and data
, or returns undefined
if no items are selected. This method can be used only to get the selected items in a multiple-selection list box. To retrieve information about the currently selected item in a single-selection list box, use FListBox.getSelectedItem
.
Example
The following code retrieves the items currently selected in wishList
and stores them in the variable myObjArray
.
var myObjArray = wishList
.getSelectedItems();
See also
FListBox.getSelectedItem
, FListBox.setSelectMultiple
![]() ![]() ![]() |