8.
Select Window > Common Libraries > Classes to open the Classes library.
9.
Select Window > Library to open your document's library.
10.
Drag DataBindingClasses from the Classes library to your document's library.
This makes the data binding runtime classes available for your document.
11.
Save the FLA file to the same folder that contains NumberFormatter.as.
12.
Test the file (Control > Test Movie).
Click the buttons on the NumericStepper component and watch the contents of the
TextInput component update.
Method summary for the CustomFormatter class
The following table lists the methods of the CustomFormatter class.
Method
CustomFormatter.format()
CustomFormatter.unformat()
CustomFormatter.format()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
This method is called automatically; you don't invoke it directly.
Parameters
The data to be formatted.
rawData
Returns
A formatted value.
214
Data binding classes (Flash Professional only)
Description
Converts from a raw data type to a new object.
Converts from a string, or other data type, to a raw
data type.
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?