MACROMEDIA FLASH MX 2004-USING FLASH Use Manual page 288

Hide thumbs Also See for FLASH MX 2004-USING FLASH:
Table of Contents

Advertisement

Note: 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
Using Components.
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
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
Resolving data to a relational database (Flash Professional only)
The RDBMSResolver component creates an XML packet that can be sent to an external data
source (such as ASP/JSP page, servlet, and so on). The XML packet can easily be translated into
SQL statements that can be used to update any standard SQL relational database. Your
development team must write the server code to parse the XML and generate SQL statements.
You can use the RDBMSResolver component to send data updates to any external data source
that can parse XML and generate SQL statements against a database—for example, an ASP page,
a Java servlet, or a ColdFusion component.
When an RDBMSResolver component receives a delta packet from a DataSet component, it
converts it into an XML update packet, which can be communicated to an external data source
through a connector component. The converted output is referred to as an update packet and
consists of an optimized set of instructions that 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
The RDBMSResolver component works only with Flash Player 7.
288
Chapter 14: Data Integration (Flash Professional Only)
property of the RDBMSResolver component.
"Schema encoders" on page
303.
294.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents