Where are you trying to disable the
validator from. The “document” is always the object on which the
Validator itself lives. So if you’re calling code from the MXML file
itself you’d always use “this.” If you’re calling it
from a ViewHelper or something you could use the Application.application route
or if you already have a reference to the MXML file just use that.
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Libby
Sent: Tuesday, November 15, 2005
6:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Question
about Enable / Disable Validator
Ok, further testing makes me think that my "pointer" to the
current
document is not always good. I am getting it by
using
mx.application.application.objectName.objectName...
Is this the
wrong way to do this, is there a better way to get
to the current
document? I apologize if this is a dumb question
as I am pretty new to
Flex development.
Thanks,
Libby
--- In flexcoders@yahoogroups.com,
"Libby" <libby[EMAIL PROTECTED]>
wrote:
>
> I am disabling the right one, but that's all
I am doing. It seems to
> me I need to do something to tell flex to
repaint the screen, which
> would then remove the red border since the
validator is not being
> invoked. Is this wrong?
>
> --- In flexcoders@yahoogroups.com,
"Matt Chotin" <[EMAIL PROTECTED]> wrote:
> >
> > Hmm, disabling the validator usually
does clear any borders, you sure
> > you disabled the right one?
> >
> >
> >
> > ________________________________
> >
> > From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
> > Behalf Of Libby
> > Sent: Monday, November 14, 2005 5:52 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Question about
Enable / Disable Validator
> >
> >
> >
> > If you have a validator enabled and an
error has been thrown (the
> > field is red border), then you disable
the validator, the border stays
> > red. How can you force the red border to
go away after you disable the
> > validator? Somehow you need to repaint
the screen...?
> >
> > 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
SPONSORED LINKS
YAHOO! GROUPS LINKS