User Guide
186 Chapter 6: Components Dictionary
Events inherited from the UIComponent class
The following table lists the events the ComboBox class inherits from the UIComponent class.
ComboBox.addItem()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
comboBoxInstance.addItem(label[, data])
comboBoxInstance.addItem({label:label[, data:data]})
comboBoxInstance.addItem(obj);
Parameters
label
A string that indicates the label for the new item.
data The data for the item; it can be of any data type. This parameter is optional.
obj An object with a label property and an optional data property.
Returns
The index at which the item was added.
Description
Method; adds a new item to the end of the list.
Example
The following code adds an item to the myComboBox instance:
myComboBox.addItem("this is an Item");
UIObject.resize Broadcast when an object has been resized.
UIObject.reveal Broadcast when an object’s state changes from invisible to visible.
UIObject.unload Broadcast when the subobjects are being unloaded.
Event Description
UIComponent.focusIn Broadcast when an object receives focus.
UIComponent.focusOut Broadcast when an object loses focus.
UIComponent.keyDown Broadcast when a key is pressed.
UIComponent.keyUp Broadcast when a key is released.
Event Description