XUpdateResolver.beforeApplyUpdates
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
resolveData.beforeApplyUpdates(eventObject)
Parameters
Resolver event object; describes the customizations to the XML packet before
eventObject
the update is sent through the connector to the database. This event object should contain the
following properties:
Property
target
type
updatePacket
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);
}
1512
XUpdateResolver component (Flash Professional only)
Description
Object; the resolver generating this event.
String; the name of the event.
XML object; the XML object that is about to be
applied.
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers