Dataset.createitem() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Example
The following example removes all items from the current view of the DataSet collection.
Because the
property is set to
, the removal of those items is logged.
logChanges
true
my_ds.addItem({name:"Milton", years:3});
my_ds.addItem({name:"Mark", years:3});
my_ds.addItem({name:"Sarah", years:1});
my_ds.addItem({name:"Michael", years:2});
my_ds.addItem({name:"Frank", years:2});
my_ds.addSort("nameSort", ["name"]);
my_ds.filtered = true;
my_ds.filterFunc = function(item:Object):Boolean {
return (item.years >= 3);
};
my_ds.logChanges = true;
my_ds.clear(); // Remove filtered items from dataset.
my_ds.removeSort("nameSort");
See also
,
DataSet.deltaPacket
DataSet.logChanges

DataSet.createItem()

Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSetInstance.createItem([itemData])
Parameters
Data associated with the item. This parameter is optional.
itemData
Returns
The newly constructed item.
DataSet.createItem()
351

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