Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > DataSet component > DataSet.itemClassName | |||
Flash Player 7.
Flash MX Professional 2004.
dataSetInstance.itemClassName
Property; a string indicating the name of the class that should be created when items are added to the collection. The class you specify must implement the TransferObject interface, shown below.
interface mx.data.to.TransferObject {
function clone():Object;
function getPropertyData():Object;
function setPropertyData(propData:Object):Void;
}
You can also set this property in the Property inspector.
To make the specified class available at runtime, you must also make a fully qualified reference to this class somewhere in your SWF file's code, as in the following code snippet:
var myItem:my.package.myItem;
A DataSetError exception is thrown if you try to modify the value of this property after the DataSet.items array has been loaded.
For more information, see TransferObject interface.
Flash CS3