Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > Data binding classes > CustomValidator.validationError() | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
this.validationError(errorMessage)
|
NOTE |
|
This method can be invoked only from within a custom validator class; the keyword |
errorMessage A string that contains the error message to be reported.
Nothing.
Method; called from the validate() method of your subclass of CustomValidator to report validation errors. If you don't 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.
See the Example section for CustomValidator.validate().
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00002677.html