ActionScript 2.0 Components Language Reference |
|
|
|
| XUpdateResolver component > XUpdateResolver.beforeApplyUpdates | |||
Flash Player 7.
Flash MX Professional 2004.
resolveData.beforeApplyUpdates(eventObject)
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:
|
Property |
Description |
|---|---|
|
|
Object; the resolver generating this event. |
|
|
String; the name of the event. |
|
|
XML object; the XML object that is about to be applied. |
None.
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.
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);
}
|
|
|
|