User Guide
DataProvider.addItemAt() 319
DataProvider.addItem()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myDP.addItem(item)
Parameters
item An object that contains data. This constitutes an item in a data provider.
Returns
Nothing.
Description
Method; adds a new item at the end of the data provider. This method triggers the
modelChanged event with the event name addItems.
Example
The following example adds an item to the end of the data provider myDP:
myDP.addItem({label : "this is an Item"});
DataProvider.addItemAt()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myDP.addItemAt(index, item)
Parameters
index A number greater than or equal to 0. This number indicates the position at which to
insert the item; it is the index of the new item.
item An object containing the data for the item.