MACROMEDIA FLASH MX 2004-USING FLASH Use Manual page 281

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

Advertisement

Managing data with the DataSet component (Flash Professional only)
The data structure that is fundamental to data-driven applications is a table with rows and
columns, or fields. To expose the fields of the current row in the table, you must define properties
of a DataSet component on the Schema tab. (For an example, see the design time example in
"Accessing the data" on page
Once you have specified a schema for the DataSet component, you typically create the following
bindings to or from a DataSet component:
Bind the results of a connector component to fields of the DataSet component.
Bind fields of the DataSet component to properties of UI components within your Flash
document.
Bind the DeltaPacket property of a resolver component to the DeltaPacket property of a
DataSet component.
The following diagram illustrates the data binding that typically is needed when you use a
DataSet component.
The DataSet component is used to hold and organize your data; you must use data bindings and
write ActionScript code to handle updates. Changes that are made to your data through UI
components can be tracked and used to generate a DeltaPacket, an object produced by the
DataSet component that contains a list of changes made to data at runtime. A resolver
component can then manipulate the DeltaPacket into a specific format for use by external data
sources. Using the
changes made to the data and methods called.The following illustration shows the flow of data
through a UI component, DataSet and Resolver component, and the DeltaPacket object
produced.
For a common workflow and information on how you use the methods, properties, and events of
the DataSet component to manage your data, see "Using the DataSet component", "DataSet class
(Flash Professional only)", and the "DeltaPacket interface (Flash Professional only)" in Using
Components.
284.)
method of the DataSet component, you can track both
logChanges()
Data management (Flash Professional only)
281

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents