ComboBox.dropdownWidth

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX 2004.

Usage

comboBoxInstance.dropdownWidth

Description

Property; the width limit of the drop-down list, in pixels. The default value is the width of the ComboBox component (the TextInput instance plus the SimpleButton instance).

Example

With a ComboBox component instance my_cb on the Stage, the following ActionScript sets the drop-down list width to accommodate the labels:

// Set the dropdown width to accommodate the label sizes.
my_cb.dropdownWidth = 200;

// Add Items to List.
my_cb.addItem("ComboBox");
my_cb.addItem({data:2, label:"This is a long label"});
my_cb.addItem({data:3, label:"This has an even longer label"});

See also

ComboBox.dropdown