Dataprovider.editfield() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Returns
Nothing.
Description
Method; adds a new item to the data provider at the specified index. Indices greater than the
data provider's length are ignored.
This method triggers the
Example
The following example adds an item to the data provider
myDP.addItemAt(3, {label : "this is the fourth Item"});

DataProvider.editField()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myDP.editField(index, fieldName, newData)
Parameters
A number greater than or equal to 0; the index of the item.
index
A string indicating the name of the field to modify in the item.
fieldName
The new data to put in the data provider.
newData
Returns
Nothing.
Description
Method; changes one field of the data provider.
This method triggers the
Example
The following code modifies the
myDP.editField(2, "label", "mynewData");
320
DataProvider API
event with the event name
modelChanged
event with the event name
modelChanged
field of the third item:
label
.
addItems
at the fourth position:
myDP
updateField
.

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents