MACROMEDIA FLASH MX 2004-USING FLASH Use Manual page 287

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

Advertisement

Resolver components do not send any data from a SWF to server-side scripts or external data
sources. You need to set up this kind of data transfer. Here are the most common ways to send
data outside a SWF:
Bind the resolver's processed data to a connector component, such as the XMLConnector or
WebServiceConnector components. This connector component instance is in addition to the
instance that connects your data source to a DataSet or to UI components; see the diagram at
the beginning of this chapter.
Write ActionScript code using the LoadVars class (see "LoadVars class" in Flash ActionScript
Language Reference).
Write ActionScript code using the XML class (see "XML class" in Flash ActionScript Language
Reference).
For more information, see Chapter 11, "Working with External Data" in Flash ActionScript
Language Reference.
Note: External data refers to any data that is accessible through HTTP.
Resolving XML data with the XUpdateResolver component (Flash
Professional only)
The XUpdateResolver component converts changes made to the data in your application into
XUpdate statements that can be processed by an external data source. 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. You can write your own server code to handle updates, for
example, in your own ASP page, Java servlet, or ColdFusion component. For more information,
see the XUpdate specification at www.xmldb.org/xupdate/.
The XUpdateResolver component works only in applications published for Flash Player 7.
For a common workflow and information about the methods, events, and properties of the
XUpdateResolver component, see "XUpdateResolver component (Flash Professional only)" in
Using Components.
You need to set the correct encoder when you use the XUpdateResolver component; for more
information, see the discussion of the DatasetDeltaToXUpdateDelta encoder in
encoders" on page
For a tutorial that uses this component, see the XUpdate tutorial, "XML Tutorial: Timesheet
(Flash Professional Only)," in the Data Tutorials in Flash Help.
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
294.
xupdatePacket
property of the XUpdateResolver component.
Data resolution (Flash Professional only)
"Schema
287

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents