User Guide

220 Data binding classes (Flash Professional only)
Usage
this.validationError(errorMessage)
Parameters
errorMessage A string that contains the error message to be reported.
Returns
Nothing.
Description
Method; called from the validate() method of your subclass of CustomValidator to report
validation errors. If you dont call
validationError(), a valid event is generated when
validate() finishes executing. If you call validationError() one or more times from
within the
validate(), an invalid event is generated after validate() returns.
Each message you pass to
validationError() is available in the messages property of the
event object that was passed to the
invalid event handler.
Example
See the Example section for CustomValidator.validate().
EndPoint class (Flash Professional only)
ActionScript Class Name mx.data.binding.EndPoint
The EndPoint class defines the source or destination of a binding. EndPoint objects define a
constant value, component property, or particular field of a component property, from which
you can get data, or to which you can assign data. They can also define an event, or list of
events, that a Binding object listens for; when the specified event occurs, the binding executes.
When you create a new binding with the Binding class constructor, you pass it two EndPoint
objects: one for the source and one for the destination.
new mx.data.binding.Binding(srcEndPoint, destEndPoint);
NOTE
This method can be invoked only from within a custom validator class; the keyword this
refers to the current CustomValidator object.