User Guide
756 Chapter 6: Components Dictionary
TransferObject interface
ActionScript Class Name mx.data.to.TransferObject
The TransferObject interface defines a set of methods that items managed by the DataSet
component must implement. The
DataSet.itemClassName property specifies the name of the
transfer object class that is instantiated each time a new item is needed. You can also specify this
property for a selected DataSet component using the Property inspector.
Method summary for the TransferObject interface
The following table lists methods of the TransferObject interface.
TransferObject.clone()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
class itemClass implements mx.data.to.TransferObject {
function clone() {
// your code here
}
}
Parameters
None.
Returns
A copy of the transfer object.
Description
Method; creates an instance of the transfer object. The implementation of this method creates a
copy of the existing transfer object and its properties and then returns that object.
Method Description
TransferObject.clone() Creates a new instance of the transfer object.
TransferObject.getPropertyData() Returns the data for this transfer object.
TransferObject.setPropertyData() Sets the data for this transfer object.
CHAPTER 6
Components Dictionary