DataProvider.addItemAt()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myDP.addItemAt(index, item)
Parameters
A number greater than or equal to 0. This number indicates the position at which to
index
insert the item; it is the index of the new item.
An object containing the data for the item.
item
Returns
Nothing.
Description
Method; adds a new item to the data provider at the specified index. Indices greater than the data
provider's length are ignored.
This method triggers the
Example
The following example adds an item to the data provider
myDP.addItemAt(3, {label : "this is the fourth Item"});
DataProvider.editField()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myDP.editField(index, fieldName, newData)
Parameters
A number greater than or equal to 0; the index of the item.
index
A string indicating the name of the field to modify in the item.
fieldName
The new data to put in the data provider.
newData
292
Chapter 6: Components Dictionary
event with the event name
modelChanged
.
addItems
at the fourth position:
myDP
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