Use the code I posted above with the change listener and the
"buttonEnabled()" function.

-Josh

On Thu, Sep 25, 2008 at 3:14 PM, Rafael Faria
<[EMAIL PROTECTED]>wrote:

> Now i have another problem.
>
> What if the enabled depends on the action of 2 different "hosts"? like
> i need to check if myLabel1 == '' and myLabel2 == ''.
>
> i tried to duplicate the same function twice for the same object but
> different sources but i dont think that works like this.
>
> anyone has any idea?!
>
> raf
>
> --- In flexcoders@yahoogroups.com, "Rafael Faria"
> <[EMAIL PROTECTED]> wrote:
> >
> > Actually
> > this helped  me
> >
> >                                       BindingUtils.bindProperty(myButton,
> "enabled", myLabel,
> > {name:"text",getter:function(host) { if (host.text == '') { return
> > false; } else { return true; } } });
> >
> > thanks :)
> >
>
>
> ------------------------------------
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]

Reply via email to