Delta.getSource()

Availability

Flash Player 7.

Edition

Flash MX Professional 2004.

Usage

delta.getSource()

Parameters

None.

Returns

The transfer object on which the changes were performed.

Description

Method; returns the transfer object on which the changes were performed.

Example

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]);
            }
        }
    }
}