Dataprovider.additem(); Dataprovider.additemat() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

DataProvider.addItem()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myDP.addItem(item)
Parameters
An object that contains data. This constitutes an item in a data provider.
item
Returns
Nothing.
Description
Method; adds a new item at the end of the data provider. This method triggers the
event with the event name
modelChanged
Example
The following example adds an item to the end of the data provider
myDP.addItem({label : "this is an Item"});

DataProvider.addItemAt()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myDP.addItemAt(index, item)
Parameters
A number greater than or equal to 0. This number indicates the position at which to
index
insert the item; it is the index of the new item.
An object containing the data for the item.
item
.
addItems
:
myDP
DataProvider.addItemAt()
319

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents