User Guide
348 Components Dictionary
Example
The following code calls the applyUpdates() method on the my_ds DataSet.
my_ds.applyUpdates();
The following example adds four items to the my_ds DataSet instance on the Stage and
displays each item in the top-level of the
deltaPacket property:
my_ds.addItem({name:"Thomas", age:35, gender:"M"});
my_ds.addItem({name:"Orville", age:33, gender:"M"});
my_ds.addItem({name:"Jonathan", age:48, gender:"M"});
my_ds.addItem({name:"Carol", age:31, gender:"F"});
my_ds.applyUpdates();
var i:String;
for (i in my_ds.deltaPacket) {
trace(i + ":\t" + my_ds.deltaPacket[i]);
}
See also
DataSet.deltaPacket
DataSet.calcFields
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
Usage 1:
var listenerObject:Object = new Object();
listenerObject.calcFields = function (eventObj:Object):Void {
// ...
};
dataSetInstance.addEventListener("calcFields", listenerObject);
Usage 2:
on (calcFields) {
// ...
}