ActionScript 2.0 Components Language Reference |
|
|
|
| TransferObject interface > TransferObject.getPropertyData() | |||
Flash Player 7.
Flash MX Professional 2004.
class itemClass implements mx.data.to.TransferObject {
function getPropertyData() {
// Your code here.
}
}
None.
An object.
Method; returns the data for this transfer object. The implementation of this method can return an anonymous ActionScript object with properties and corresponding values.
The following function returns an object named internalData that contains the properties and their values from the Contact object:
class Contact implements mx.data.to.TransferObject {
function getPropertyData():Object {
var internalData:Object = {name:name, readOnly:_readOnly, phone:phone, zip:zip.zipPlus4};
return(internalData);
}
|
|
|
|