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.

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;).

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.