User Guide

XUpdateResolver component (Flash Professional only) 907
XUpdateResolver component (Flash Professional only)
Resolver components are used with the DataSet component (part of the data management
functionality in the Flash data architecture) to save changes to an external data source. Resolvers
take a
DataSet.deltaPacket object and convert it to an update packet in a format appropriate
to the type of resolver. The update packet can then be transmitted to the external data source by
one of the connector components. Resolver components have no visual appearance at runtime.
For general information on how to manage data in Flash using the DataSet component, see “Data
management (Flash Professional only)” in Using Flash.
XUpdate is a standard for describing changes that are made to an XML document and is
supported by a variety of XML databases, such as Xindice and XHive. The XUpdateResolver
component translates the changes made to a DataSet component into XUpdate statements. The
updates from the XUpdateResolver component are sent in the form of an XUpdate data packet,
which is communicated to the database or server through a connection object. The
XUpdateResolver component gets a delta packet from a DataSet component, sends its own
update packet to a connector, receives server errors back from the connection, and communicates
them back to the DataSet component—all using bindable properties.
For information about the working draft of the XUpdate language specification, see
www.xmldb.org/xupdate/xupdate-wd.html. For more information, also see “RDBMSResolver
component (Flash Professional only)” on page 636, “DataSet component (Flash Professional
only)” on page 301, “WebServiceConnector component (Flash Professional only)” on page 865,
and “XMLConnector component (Flash Professional only)” on page 894. For information about
the Flash data architecture, see “Data resolution (Flash Professional only)” in Using Flash; for
information about resolving XML data, see “Resolving XML data with the XUpdateResolver
component (Flash Professional only)” in Using Flash.
Note: You can also use the XUpdateResolver component to send data updates to any external data
source that can parse the XUpdate language—for example, an ASP page, a Java servlet, or a
ColdFusion component.
Using the XUpdateResolver component (Flash Professional only)
The XUpdateResolver component is used only when your Flash application contains a DataSet
component and must send an update back to an external data source.
The XUpdateResolver component communicates with the DataSet component by using the
DataSetDeltaToXUpdateDelta encoder. This encoder creates XPath statements that uniquely
identify nodes within an XML file according to the information contained in the DataSet
component’s delta packet. This information is used by the XUpdateResolver component to
generate XUpdate statements. For more information on the DataSetDeltaToXUpdateDelta
encoder, see “Schema encoders” in Using Flash.
For more information on working with the XUpdateResolver component, see “Data resolution
(Flash Professional only)” in Using Flash.
CHAPTER 6
Components Dictionary