Updates sent to an external data source
When a user edits data in your Flash application, the data is captured in the DataSet
component. The DataSet component produces a DeltaPacket, which the resolver component
uses to create an update packet. The update packet consists of XUpdate statements, which are
communicated to an external data source through a connector component. These statements
describe the inserts, edits, and deletes performed on the DataSet component. You can view or
bind the contents of the update packet using the
XUpdateResolver component.
The information contained within the XML update packet is affected in part by the
component parameter values that are assigned by the developer. For information on the
XUpdateResolver component parameters, see "Using the XUpdateResolver component
(Flash Professional only)" in Components Language Reference.
The following XML code is an example of an update packet created by an XUpdateResolver
component:
<?xml version="1.0"?>
<xupdate:modifications version="1.0" xmlns:xupdate="http://www.xmldb.org/
xupdate">
<xupdate:insert-after select="/addresses/address[1]" >
<xupdate:element name="address">
<xupdate:attribute name="id">2</xupdate:attribute>
<fullname>Lars Martin</fullname>
<born day='2' month='12' year='1974'/>
<town>Leizig</town>
<country>Germany</country>
</xupdate:element>
</xupdate:insert-after>
</xupdate:modifications>
When you use the XUpdateResolver component with a DataSet, you must set the correct
encoder on the Schema tab: the DataSetDeltaToXUpdateDelta encoder. This encoder is
responsible for creating XPath statements that uniquely identify nodes within an XML file
based on the information contained within the DataSet component's DeltaPacket. This
information is used by the XUpdateResolver component to generate XUpdate statements. For
more information about the DataSetDeltaToXUpdateDelta encoder, see
on page
437.
In addition to client-side code and configuration, you or your server administrator also need
to write server code to handle the interaction with your Flash application. For more
information, see
"Server-side requirements for resolving XML data" on page
property of the
xupdatePacket
Data resolution (Flash Professional only)
"Schema encoders"
447.
429
Need help?
Do you have a question about the FLASH 8-USING FLASH and is the answer not in the manual?