User Guide

Data binding classes (Flash Professional only) 219
Method summary for the CustomFormatter class
The following table lists the methods of the CustomFormatter class.
CustomFormatter.format()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
This method is called automatically; you dont invoke it directly.
Parameters
rawData
The data to be formatted.
Returns
A formatted value.
Description
Method; converts from a raw data type to a new object.
This method is not implemented by default. You must define it in your subclass of
mx.data.binding.CustomFormatter.
For more information, see “Sample custom formatter” on page 217.
CustomFormatter.unformat()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
This method is called automatically; you dont invoke it directly.
Parameters
formattedData The formatted data to convert back to the raw data type.
Method Description
CustomFormatter.format() Converts from a raw data type to a new object.
CustomFormatter.unformat() Converts from a string, or other data type, to a raw data
type.