User Guide
DataSet component (Flash Professional only) 311
Example
In this example, a form named contactForm (not shown) is made visible once the items in the
data set
contact_ds have been assigned.
contact_ds.addEventListener("afterLoaded", loadListener);
loadListener = new Object();
loadListener.afterLoaded = function (eventObj) {
if(eventObj.target == "contact_ds") {
contactForm.visible = true;
}
}
DataSet.applyUpdates()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.applyUpdates()
Parameters
None.
Returns
Nothing.
Description
Method; signals that the DataSet.deltaPacket property has a value that you can access using
data binding or directly by ActionScript. Before this method is called, the
DataSet.deltaPacket
property is
null. This method has no effect if events have been disabled by means of the
DataSet.disableEvents() method.
Calling this method also creates a transaction ID for the current
DataSet.deltaPacket property
and emits a
deltaPacketChanged event. For more information, see DataSet.deltaPacket.
Example
The following code calls the applyUpdates() method on myDataSet.
myDataSet.applyUpdates();
See also
DataSet.deltaPacket