ActionScript 2.0 Components Language Reference |
|
|
|
| Delta interface > Delta.getSource() | |||
Flash Player 7.
Flash MX Professional 2004.
delta.getSource()
None.
The transfer object on which the changes were performed.
Method; returns the transfer object on which the changes were performed.
The following example calls the getSource() method:
while(dpCursor.hasNext()) {
dpDelta = Delta(dpCursor.next());
op=dpDelta.getOperation();
switch(op) {
case mx.data.components.datasetclasses.DeltaPacketConsts.Modified: {
// the original values are
trace("Unmodified source is: ");
var src = dpDelta.getDeltaPacket().getSource();
for(var i in src){
if(typeof(src[i]) != "function"){
trace(i+"="+src[i]);
}
}
}
}
|
|
|
|