User Guide
DeltaPacket interface (Flash Professional only) 403
Example
The following example uses the getIterator() method to access the iterator for the deltas in a
delta packet and uses a
while statement to loop through the deltas:
var deltapkt:DeltaPacket = _parent.myDataSet.deltaPacket;
trace("*** Test deltapacket. Trans ID is: " + deltapkt.getTransactionId() + "
***");
var OPS:Array = new Array("added", "removed", "modified");
var dpCursor:Iterator = deltapkt.getIterator();
var dpDelta:Delta;
var op:Number;
var changeMsg:String;
while(dpCursor.hasNext()) {
dpDelta = Delta(dpCursor.next());
op=dpDelta.getOperation();
}
DeltaPacket.getSource()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
deltaPacket.getSource()
Parameters
None.
Returns
An object; the source of the DeltaPacket collection. This object is typically a descendant of
MovieClip, but this is not required. For example, if the source is a data set, this object might be
_level0.myDataSet.
Description
Method; returns the source of the DeltaPacket collection.
Example
The following example calls the getSource() method:
// ...
var deltapkt:DeltaPacket = _parent.myDataSet.deltaPacket;
var dpSourceText:String = "Source: " + deltapkt.getSource();
trace(dpSourceText);
// ...