If you do not create persistent fields for the DataSet component and you bind it to a
WebServiceConnector component or an XMLConnector component that defines a schema,
the DataSet component tries to create the correct fields based on the connector component's
schema, which might not work. For more information, see
component (Flash Professional only)" on page
Persistent fields that are defined for a DataSet component take precedence over the
schema for a connector component.
Data resolution (Flash Professional only)
The resolver components let you convert changes made to the data within your application
into a format that is appropriate for the external data source that you are updating. The
resolver components can also receive updates from an external data source and convert them
into a format that is appropriate for the DataSet component to receive them.
Flash Professional 8 includes the following resolver components:
"XUpdateResolver component (Flash Professional only)" for XML data sources
"RDBMSResolver component (Flash Professional only)" for relational databases
Typically, you use the resolver components with the DataSet component. When a user edits
data in your application, the data is captured in the DataSet component. The DataSet
component generates a DeltaPacket, an object that contains a list of changes made to the data
at runtime. The resolver component then converts the DeltaPacket to the appropriate format
(update packet). When an update is sent to the server, the server should respond with a results
packet containing errors or updated field values from the operations that were performed. The
resolver components can convert this information back into a DeltaPacket that can then be
applied to the data set to keep it synchronized with the external data source.
The RDBMSResolver component provides limited synching ability at this time.
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 in ActionScript 2.0
Language Reference).
"Managing data with the DataSet
420.
Data resolution (Flash Professional only)
427
Need help?
Do you have a question about the FLASH 8-USING FLASH and is the answer not in the manual?