ActionScript 2.0 Components Language Reference |
|
|
|
| DataProvider API > DataProvider.replaceItemAt() | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
myDP.replaceItemAt(index,item)
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.
Nothing.
Method; replaces the content of the item at the specified index. This method triggers the modelChanged event with the event name updateItems.
This example replaces the item at index 3 with the item labeled "new label":
myDP.replaceItemAt(3, {label : "new label"});
|
|
|
|