MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 757

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

Example
The following function returns a copy of this transfer object with all of the properties set to the
same values as the original:
class itemClass implements mx.data.to.TransferObject {
function clone():Object {
var copy:itemClass = new itemClass();
for (var p in this) {
copy[p]= this[p];
}
return(copy);
}
}
TransferObject.getPropertyData()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
class itemClass implements mx.data.to.TransferObject {
function getPropertyData() {
// your code here
}
}
Parameters
None.
Returns
An object.
Description
Method; returns the data for this transfer object. The implementation of this method can return
an anonymous ActionScript object with properties and corresponding values.
Example
The following function returns an object named
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);
}
that contains the properties and
internalData
TransferObject interface
757

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

This manual is also suitable for:

Flash mx

Table of Contents