ActionScript 2.0 Components Language Reference |
|
|
|
| DataProvider API > DataProvider.editField() | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
myDP.editField(index,fieldName,newData)
index A number greater than or equal to 0; the index of the item.
fieldName A string indicating the name of the field to modify in the item.
newData The new data to put in the data provider.
Nothing.
Method; changes one field of the data provider.
This method triggers the modelChanged event with the event name updateField.
The following code modifies the label field of the third item:
myDP.editField(2, "label", "mynewData");
|
|
|
|