Data resolution (Flash Professional only)
429
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
xupdatePacket
property of the
XUpdateResolver component.
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
“Schema encoders”
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 447
.
NO
TE
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
.
Summary of Contents for FLASH 8-FLASH
Page 1: ...Using Flash ...
Page 12: ...12 Contents ...
Page 110: ...110 Using Symbols Instances and Library Assets ...
Page 128: ...128 Working with Color Strokes and Fills ...
Page 156: ...156 Drawing ...
Page 190: ...190 Working with Text ...
Page 224: ...224 Working with Graphic Objects ...
Page 270: ...270 Creating Motion ...
Page 310: ...310 Working with Video ...
Page 362: ...362 Working with Screens Flash Professional Only ...
Page 386: ...386 Creating Multilanguage Text ...
Page 454: ...454 Data Integration Flash Professional Only ...
Page 500: ...500 Publishing ...
Page 534: ...534 Creating Accessible Content ...