User Guide
1512 XUpdateResolver component (Flash Professional only)
XUpdateResolver.beforeApplyUpdates
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
resolveData.beforeApplyUpdates(eventObject)
Parameters
eventObject Resolver event object; describes the customizations to the XML packet before
the update is sent through the connector to the database. This event object should contain the
following properties:
Returns
None.
Description
Event; called by the resolver component to make custom modifications immediately after the
XML packet has been created for a new delta packet, and immediately before that packet is
sent out using data binding. You can use this event handler to make custom modifications to
the XML before sending the updated data to a connector.
Example
The following example adds the user authentication data to the XML packet:
on (beforeApplyUpdates) {
// Add user authentication data.
var userInfo = new XML(""+getUserId()+" "+getPassword()+"");
xupdatePacket.firstChild.appendChild(userInfo);
}
Property Description
target
Object; the resolver generating this event.
type
String; the name of the event.
updatePacket
XML object; the XML object that is about to be
applied.