ActionScript 2.0 Components Language Reference |
|
|
|
| ComboBox component > ComboBox.open() | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004.
comboBoxInstance.open()
None.
Nothing.
Method; opens the drop-down list.
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);
|
|
|
|