MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 187

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

Advertisement

ComboBox.addItemAt()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
comboBoxInstance.addItemAt(index, label[, data])
comboBoxInstance.addItemAt(index, {label:label[, data:data]})
comboBoxInstance.addItemAt(index, obj);
Parameters
A number 0 or greater that indicates the position at which to insert the item (the index
index
of the new item).
A string that indicates the label for the new item.
label
The data for the item; it can be of any data type. This parameter is optional.
data
An object with
obj
Returns
The index at which the item was added.
Description
Method; adds a new item to the end of the list at the index specified by the
Indices greater than
Example
The following code inserts an item at index 3, which is the fourth position in the combo box list
(0 is the first position):
myBox.addItemAt(3, "this is the fourth Item");
ComboBox.change
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
Usage 1:
on(change){
// your code here
}
and
properties.
label
data
are ignored.
ComboBox.length
parameter.
index
ComboBox component
187

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