User Guide
6Contents
Chapter 9: Data binding classes (Flash Professional only) . . . 207
Making data binding classes available at runtime
(Flash Professional only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .207
Classes in the mx.data.binding package
(Flash Professional only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
Binding class (Flash Professional only) . . . . . . . . . . . . . . . . . . . . . . . . 208
Constructor for the Binding class. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
Binding.execute() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .211
CustomFormatter class (Flash Professional only) . . . . . . . . . . . . . . . . 212
CustomFormatter.format() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
CustomFormatter.unformat() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
CustomValidator class (Flash Professional only) . . . . . . . . . . . . . . . . . 216
CustomValidator.validate() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
CustomValidator.validationError() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
EndPoint class (Flash Professional only) . . . . . . . . . . . . . . . . . . . . . . . 220
Constructor for the EndPoint class . . . . . . . . . . . . . . . . . . . . . . . . . . . . .222
EndPoint.component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .222
EndPoint.constant. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .223
EndPoint.event. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .223
EndPoint.location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .224
EndPoint.property . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .226
ComponentMixins class (Flash Professional only). . . . . . . . . . . . . . . .226
ComponentMixins.getField() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .227
ComponentMixins.initComponent() . . . . . . . . . . . . . . . . . . . . . . . . . . . .228
ComponentMixins.refreshDestinations() . . . . . . . . . . . . . . . . . . . . . . . .229
ComponentMixins.refreshFromSources() . . . . . . . . . . . . . . . . . . . . . . 230
ComponentMixins.validateProperty() . . . . . . . . . . . . . . . . . . . . . . . . . . 230
DataType class (Flash Professional only) . . . . . . . . . . . . . . . . . . . . . . .233
DataType.encoder. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .234
DataType.formatter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .235
DataType.getAnyTypedValue() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .236
DataType.getAsBoolean(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .237
DataType.getAsNumber() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .238
DataType.getAsString(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .238
DataType.getTypedValue(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .239
DataType.kind . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
DataType.setAnyTypedValue() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
DataType.setAsBoolean(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
DataType.setAsNumber() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .242
DataType.setAsString() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .243
DataType.setTypedValue() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
TypedValue class (Flash Professional only) . . . . . . . . . . . . . . . . . . . . 245
Constructor for the TypedValue class. . . . . . . . . . . . . . . . . . . . . . . . . . .246