MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 207

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

See also
ComboBox.selectedItem
ComboBox.selectedItem
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
myComboBox.selectedItem
Description
Property; the value of the selected item in the drop-down list.
If the combo box is editable,
text box. The property only has a value if you select an item from the drop-down list or set the
value using ActionScript. If the combo box is static, the value of
returns
undefined
Example
The following example shows
var item = myComboBox.selectedItem;
trace("You selected the item " + item);
The following example shows
properties:
data
var obj = myComboBox.selectedItem;
trace("You have selected the color named: " + obj.label);
trace("The hex value of this color is: " + obj.data);
See also
ComboBox.dataProvider
ComboBox.sortItems()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
myComboBox.sortItems([compareFunc], [optionsFlag])
selectedItem
if there are no items in the list.
selectedItem
selectedItem
,
ComboBox.selectedIndex
returns
if the user enters any text in the
undefined
selectedItem
if the data provider contains primitive types:
if the data provider contains objects with
is always valid; it
label
ComboBox component
and
207

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents