User Guide
ComboBox.open 189
Description
Method; opens the drop-down list.
Example
With a ComboBox component instance my_cb on the Stage, and a Button component
instance
my_button, the following example opens the drop-down list of the my_cb combo
box when the
my_button button is clicked:
my_cb.addItem({data:2, label:"second value"});
my_cb.addItem({data:3, label:"third value"});
var btnListener:Object = new Object();
btnListener.click = function() {
my_cb.open();
};
my_button.addEventListener("click", btnListener);
See also
ComboBox.close()
ComboBox.open
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
var listenerObject:Object = new Object();
listenerObject.open = function(eventObject:Object) {
// Your code here.
};
comboBoxInstance.addEventListener("open", listenerObject)