MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 392

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

Advertisement

Description
Method; returns a unique identifier for this item within the DeltaPacket collection. Use this ID in
the source component for the delta packet to receive updates and make changes to items that the
delta packet was generated from. For example, assuming that the DataSet component sends
updates to a server and the server returns new key field values, this method allows the DataSet
component to examine the resulting delta packet, find the original transfer object, and make the
appropriate updates to it.
Example
The following example calls the
while(dpCursor.hasNext()) {
dpDelta = Delta(dpCursor.next());
trace("id ["+dpDelta.getId()+"]");
}
Delta.getItemByName()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
delta.getItemByName(name)
Parameters
A string that specifies the name of the property or method for the associated DeltaItem
name
object.
Returns
The DeltaItem object specified by
method returns
Description
Method; returns the DeltaItem object specified by
on a transfer object are needed by name, this method provides the most efficient access.
Example
The following example calls the
private function buildFieldTag(deltaObj:Delta, field:Object,
isKey:Boolean):String {
var chgItem:DeltaItem = deltaObj.getItemByName(field.name);
var result:String= "<field name=\"" + field.name + "\" type=\"" +
field.type.name + "\"";
var oldValue:String;
var newValue:String;
getId()
name
.
null
getItemByName()
method:
. If no DeltaItem object is found that matches
. When method calls or property changes
name
method:
Delta interface (Flash Professional only)
, this
name
393

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