User Guide

DeltaPacket interface (Flash Professional only) 401
DeltaPacket interface (Flash Professional only)
ActionScript Interface Name mx.data.components.datasetclasses.DeltaPacket
The DeltaPacket interface is provided by the
deltaPacket property of the DataSet component,
which is part of the data management functionality in Flash MX Professional 2004. (For more
information, see Chapter 14, “Data Integration (Flash Professional Only),” in Using Flash).
Typically the delta packet is used internally by resolver components.The DeltaPacket interface
and the related Delta interface and DeltaItem class let you manage changes made to the data.
These components have no visual appearance at runtime.
A delta packet is an optimized set of instructions that describe all changes that have been made to
the data in a data set. When the
DataSet.applyUpdates() method is called, the DataSet
component populates the
DataSet.deltaPacket property. Typically, this property is connected
(by data binding) to a resolver component such as RDBMSResolver. The resolver converts the
delta packet into an update packet in the appropriate format.
Note: Unless you are writing your own custom resolver, it is unlikely you will ever need to know about
or write code that accesses methods or properties of a
delta packet.
A delta packet contains one or more deltas (see “Delta interface (Flash Professional only)”
on page 390), and each delta contains zero or more delta items (see “DeltaItem class (Flash
Professional only)” on page 397).
Method summary for the DeltaPacket interface
The following table lists the methods of the DeltaPacket interface.
DeltaPacket.getConfigInfo()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Method Description
DeltaPacket.getConfigInfo() Returns configuration information that is specific to the
implementation of the DeltaPacket interface.
DeltaPacket.getIterator() Returns the iterator for the delta packet that iterates through
the delta packet’s list of deltas.
DeltaPacket.getSource() Returns the source of the delta packet. This is the component
that has exposed this delta packet.
DeltaPacket.getTimestamp() Returns the date and time at which the delta packet was
instantiated.
DeltaPacket.getTransactionId() Returns the transaction ID for this delta packet.
DeltaPacket.logChanges() Indicates whether the consumer of the delta packet should log
the changes it specifies.
CHAPTER 6
Components Dictionary