ComboBox.close()

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX 2004.

Usage

comboBoxInstance.close()

Parameters

None.

Returns

Nothing.

Description

Method; closes 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 closes 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.close();
};
my_button.addEventListener("click", btnListener);

See also

ComboBox.open()