Sweet Randy,
It works fine!!! :)

Raf


--- In [email protected], "Randy Martin" <[EMAIL PROTECTED]> wrote:
>
> Try this:
>  
> <mx:Button enabled="{(variable1 &amp;&amp; variable2) ? true :
false}" />
>  
> Because of the way XML is parsed, if you want to use the ampersand
(&) in a
> data binding expression in MXML, you have to use the &amp; equivalent
> instead of the ampersand.
>  
> HTH,
> Randy
> 
> 
>    _____  
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Rafael Faria
> Sent: Friday, December 21, 2007 12:03 AM
> To: [email protected]
> Subject: [flexcoders] Binding data
> 
> 
> 
> I have this button and to set it enabled i have to check between 2
> variables if both of them are true... it doesnt work in the following
> example... any clues?
> 
> <mx:Button enabled="{variable1 == true && variable2 == true}" />
> 
> 
> 
>  
> 
> 
> No virus found in this outgoing message.
> Checked by AVG. 
> Version: 7.5.516 / Virus Database: 269.17.5/1191 - Release Date:
12/20/2007
> 2:14 PM
>


Reply via email to