User Guide

ComboBox.itemRollOut 183
Parameters
index The index of the item to retrieve. The index must be a number greater than or equal
to 0, and less than the value of
ComboBox.length.
Returns
The indexed item object or value. The value is undefined if the index is out of range.
Description
Method; retrieves the item at a specified index.
Example
With a ComboBox component instance my_cb on the Stage, the following ActionScript
displays the label for the first combo box item in the Output panel:
//Add Item to List.
my_cb.addItem({data:1, label:"First Item"});
my_cb.addItem({data:2, label:"Second Item"});
trace(my_cb.getItemAt(1).label);
ComboBox.itemRollOut
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
var listenerObject:Object = new Object();
listenerObject.itemRollOut = function(eventObject:Object) {
// Your code here.
};
comboBoxInstance.addEventListener("itemRollOut", listenerObject)
Event object
In addition to the standard properties of the event object, the itemRollOut event has an
index property. The index is the number of the item that the pointer rolled off.
Description
Event; broadcast to all registered listeners when the pointer rolls off pop-up list items. This is
a List event that is broadcast from a combo box. For more information, see
List.itemRollOut.