Dataset Component (Flash Professional Only) - MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual

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

Advertisement

DataSet component (Flash Professional only)

The DataSet component lets you work with data as collections of objects that can be indexed,
sorted, searched, filtered, and modified.
The DataSet component functionality includes DataSetIterator, a set of methods for traversing
and manipulating a data collection, and DeltaPacket, a set of interfaces and classes for working
with updates to a data collection. In most cases, you don't use these classes and interfaces directly;
you use them indirectly through methods provided by the DataSet class.
The items managed by the DataSet component are also called transfer objects. A transfer object
exposes business data that resides on the server with public attributes or accessor methods for
reading and writing data. The DataSet component allows developers to work with sophisticated
client-side objects that mirror their server-side counterparts or, in its simplest form, a collection of
anonymous objects with public attributes that represent the fields in a record of data. For details
on transfer objects, see Core J2EE Patterns Transfer Object at
corej2eepatterns/Patterns/TransferObject.html.
Note: The DataSet component requires Flash Player 7 or later.
Using the DataSet component
You typically use the DataSet component in combination with other components to manipulate
and update a data source: a connector component for connecting to an external data source, user
interface components for displaying data from the data source, and a resolver component for
translating updates made to the data set into the appropriate format for sending to the external
data source. You can then use data binding to bind properties of these different components
together.
The DataSet component uses functionality in the data binding classes. If you intend to work with
the DataSet component in ActionScript only, without using the Binding and Schema tabs in the
Component inspector to set properties, you'll need to import the data binding classes into your
FLA file and set required properties in your code. See
runtime (Flash Professional only)" on page
For general information on how to manage data in Flash using the DataSet component, see "Data
management (Flash Professional only)" in Using Flash.
DataSet parameters
You can set the following parameters for the DataSet component:
itemClassName
each time a new item is created in the DataSet component.
The DataSet component uses transfer objects to represent the data that you retrieve from an
external data source. If you leave this parameter blank, the data set creates an anonymous transfer
object for you. If you give this parameter a value, the data set instantiates your transfer object
whenever new data is added.
Note: You must make a fully qualified reference to this class somewhere in your code to make sure
that it gets compiled into your application (such as
is a string indicating the name of the transfer object class that is instantiated
Components Dictionary
http://java.sun.com/blueprints/
"Making data binding classes available at
213.
private var myItem:my.package.myItem;
DataSet component (Flash Professional only)
CHAPTER 6
).
301

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents