I know it because I wrote it but most of
it should be mentioned in the docs in the validating data chapter (I think that’s
the title but haven’t checked). If you are using a subclass of the
validator you don’t need to make any changes, the validate event is fired
from a different part of the system, your subclass will still generate it after
your doValidation implementation has finished. If you wanted to do this work
in your subclass you would do it as part of doValidation.
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Libby
Sent: Thursday, December 01, 2005
2:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Could
someone point me to an example of validator.hasErrors()
Ok, 2 questions - 1, how do you know that, is it written down
somewhere where I can look it up, and 2, if you
have extended the
validator then in order to do this you would need
to overload the
validate() function, right?
Thanks,
Libby
--- In flexcoders@yahoogroups.com,
"Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> In 1.5 you can only access the validator
instance in the validate event
> handler, so that's where you'd need to do
your work.
>
>
>
> <mx:StringValidator field="..."
validate="myButton.enabled =
> !event.validator.hasErrors()" />
>
>
>
> ________________________________
>
> From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
> Behalf Of Libby
> Sent: Thursday, December 01, 2005 1:24 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Could someone point
me to an example of
> validator.hasErrors()
>
>
>
> I would like to disable a button, from
ActionScript, if the
> validator.hasErrors(). It can't be that
difficult, can it?
>
>
> --- In flexcoders@yahoogroups.com,
"Libby" <libby[EMAIL PROTECTED]>
wrote:
> >
> > I can't find an example and I guess I
don't understand how it is to be
> > used from actionscript.
> >
> > I am expecting to be able to do
something like this:
> > if(theDocument.validators.myValidator.hasErrors())
{
> > // handle it;
> > }
> >
> > but I can't figure out how to get there
from here.
> >
> > 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
>
>
>
>
> SPONSORED LINKS
>
> Web site design development
> <http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+
> site+design+development&w2=Computer+software+development&w3=Software+des
>
ign+and+development&w4=Macromedia+flex&w5=Software+development+best+prac
>
tice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>
>
> Computer software development
> <http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=We
>
b+site+design+development&w2=Computer+software+development&w3=Software+d
>
esign+and+development&w4=Macromedia+flex&w5=Software+development+best+pr
>
actice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>
>
> Software design and development
> <http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=
>
Web+site+design+development&w2=Computer+software+development&w3=Software
>
+design+and+development&w4=Macromedia+flex&w5=Software+development+best+
>
practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>
>
> Macromedia flex
> <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+
>
development&w2=Computer+software+development&w3=Software+design+and+deve
> lopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=1
> 66&.sig=OO6nPIrz7_EpZI36cYzBjw>
>
> Software development best practice
> <http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&
>
w1=Web+site+design+development&w2=Computer+software+development&w3=Softw
>
are+design+and+development&w4=Macromedia+flex&w5=Software+development+be
>
st+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw>
>
>
>
>
>
> ________________________________
>
> YAHOO! GROUPS LINKS
>
>
>
> * Visit your
group "flexcoders
> <http://groups.yahoo.com/group/flexcoders>
" on the web.
>
> * To
unsubscribe from this group, send an email to:
>
[EMAIL PROTECTED]
>
<mailto:[EMAIL PROTECTED]>
>
> * Your use of
Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>
.
>
>
>
> ________________________________
>
--
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