User Guide

332 Components Dictionary
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 “Making data binding
classes available at runtime (Flash Professional only)” on page 207.
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 is a string indicating the name of the transfer object class that is instantiated
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.
logChanges is a Boolean value that defaults to true. If this parameter is set to true, the
data set logs all changes made to its data and any method calls made on the associated
transfer objects.
readOnly is a Boolean value that defaults to false. If this parameter is set to true, the data
set cannot be modified.
You can write ActionScript code to use the properties, methods, and events of the DataSet
component to control these and additional options. For more information, see “DataSet class
(Flash Professional only)” on page 335.
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
private var myItem:my.package.myItem;).