MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 195

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

Example
The following code displays the item at index position 4:
trace(myBox.getItemAt(4).label);
ComboBox.itemRollOut
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
Usage 1:
on(itemRollOut){
// your code here
}
Usage 2:
listenerObject = new Object();
listenerObject.itemRollOut = function(eventObject){
// your code here
}
comboBoxInstance.addEventListener("itemRollOut", listenerObject)
Event object
In addition to the standard properties of the event object, the
property. The index is the number of the item that the pointer rolled out of.
Description
Event; broadcast to all registered listeners when the pointer rolls out of drop-down list items.
This is a List event that is broadcast from a combo box. For more information, see
List.itemRollOut
The first usage example uses an
instance. The keyword
component instance. For example, the following code, attached to the ComboBox instance
, sends "_level0.myBox" to the Output panel:
myBox
on(itemRollOut){
trace(this);
}
.
handler and must be attached directly to a ComboBox
on()
, used inside an
this
itemRollOut
handler attached to a component, refers to the
on()
event has an
index
ComboBox component
195

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx

Table of Contents