Combobox.close() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

// Assign function to Listener Object.
cbListener.change = function(event_obj:Object) {
trace("Value changed to: "+event_obj.target.selectedItem.label);
};
// Add Listener.
my_cb.addEventListener("change", cbListener);
See also
EventDispatcher.addEventListener()

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
on the Stage, and a Button component
my_cb
instance
, the following example closes the drop-down list of the
combo box
my_button
my_cb
when the
button is clicked:
my_button
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);
174
ComboBox component

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents