Assign your class as the listener for the Validator and make sure it has
a validationFailed method.  When the validator fails you should be able
to get the validator and retrieve its errors through the errors
property.  I don't think you can get all the errors at once with
isStructureValid because it goes through the individual validators, so
you would have to do that as well.

Matt

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Libby
Sent: Wednesday, March 22, 2006 9:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 1.5 - Looking for an example of using
ValidationFailedEvent class

Hello,
I am looking for an example of listening for the
ValidationFailedEvent. If I understand it correctly, I should be able
to listen for this event and if any or all fields on my form fail
validation I can obtain all the errors at once in the errors array
after executing isStructureValid(). Is this how it works?

Thanks,
Libby






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to