ActionScript 2.0 Components Language Reference |
|
|
|
| DataProvider API > DataProvider.addItem() | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
myDP.addItem(item)
item An object that contains data. This constitutes an item in a data provider.
Nothing.
Method; adds a new item at the end of the data provider. This method triggers the modelChanged event with the event name addItems.
The following example adds an item to the end of the data provider myDP:
myDP.addItem({label : "this is an Item"});
|
|
|
|