User Guide

326 DataProvider API
Returns
Nothing.
Description
Method; removes the item at the specified index. The indices after the removed index collapse
by one.
This method triggers the
modelChanged event with the event name removeItems.
Example
This example removes the item at the fourth position:
myDP.removeItemAt(3);
DataProvider.replaceItemAt()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myDP.replaceItemAt(index, item)
Parameters
index A number greater than or equal to 0. This number is the index of the item to change.
item An object that is the new item.
Returns
Nothing.
Description
Method; replaces the content of the item at the specified index. This method triggers the
modelChanged event with the event name updateItems.
Example
This example replaces the item at index 3 with the item labeled “new label”:
myDP.replaceItemAt(3, {label : "new label"});