MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 308

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

DataSet.addItem()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.addItem([obj])
Parameters
An object to add to this collection. This parameter is optional.
obj
Returns
A Boolean value:
Description
Method; adds the specified record (transfer object) to the collection for management. The newly
added item becomes the current item of the data set. If no
object is created automatically by means of
The location of the new item in the collection depends on whether a sort has been specified for
the current iterator. If no sort is in use, the item is added to the end of the collection. If a sort is in
use, the item is added to the collection according to its position in the current sort.
For more information on initialization and construction of the transfer object, see
DataSet.createItem()
Example
The following example uses
set:
myDataSet.addItem(myDataSet.createItem());
See also
DataSet.createItem()
DataSet.addItemAt()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
DataSetInstance.addItemAt(index, item)
308
Chapter 6: Components Dictionary
if the item was added to the collection,
true
.
DataSet.createItem()
false
parameter is specified, a new
obj
DataSet.createItem()
to create a new item and add it to the data
if it was not.
.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

This manual is also suitable for:

Flash mx

Table of Contents