Delta Interface (Flash Professional Only) - MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

Returns
Nothing.
Description
Method; adds the specified DeltaItem instance. If the specified DeltaItem instance already exists,
this method replaces it.
Example
The following example calls the
//...
var d:Delta = new DeltaImpl("ID1345678", curItem, DeltaPacketConsts.Added, "",
false);
d.addDeltaItem(new DeltaItem(DeltaItem.Property, "ID", {oldValue:15,
newValue:16}));
//...
Delta.getChangeList()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
delta.getChangeList()
Parameters
None.
Returns
An array of associated DeltaItem instances.
Description
Method; returns an array of associated DeltaItem instances. Each DeltaItem instance in the array
describes a change made to the item.
Example
The following example calls the
//...
case mx.data.components.datasetclasses.DeltaPacketConsts.Modified: {
// dpDelta is a variable of type Delta.
var changes:Array = dpDelta.getChangeList();
for(var i:Number = 0; i<changes.length; i++) {
// getChangeMessage is a user-defined method.
changeMsg = _parent.getChangeMessage(changes[i]);
trace(changeMsg);
method:
addDeltaItem()
method.:
getChangeList()

Delta interface (Flash Professional only)

391

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents