Re: [flexcoders] Conditional Login inside curly braces for binding

2006-10-11 Thread Daniel Wabyick
Hi Peter (and all) ... I finally got around to checking out your proposed method, and unfortunately it does not work. It seems to interpret anything within a CDATA block as a string. Here is what I tried, and it does not work. I also tried the following ... without luck:

RE: [flexcoders] Conditional Login inside curly braces for binding

2006-10-03 Thread Gordon Smith
Or write the && operator as && - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Tuesday, October 03, 2006 2:50 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Conditional Login inside

Re: [flexcoders] Conditional Login inside curly braces for binding

2006-10-03 Thread Tom Chiverton
On Monday 02 October 2006 18:41, Sam Shrefler wrote: > Is there anyway to put a condition inside { } for example: > enabled="{checkA == something && checkB == somethingElse}" Create a mx:Script block and encapsulate your logic in a function, then: enabled="{isThingEnabled(checkA,checkB)}" -- Tom

Re: [flexcoders] Conditional Login inside curly braces for binding

2006-10-02 Thread Sam Shrefler
Sho:   Yep...i rushed the reply right after writing it on my blog...blog was right, reply was wrong...thanks   Peter:   Thanks, i never thought of doing if that way..   Thanks for all the replies Sam  On 10/2/06, Peter Hall <[EMAIL PROTECTED]> wrote:

Re: [flexcoders] Conditional Login inside curly braces for binding

2006-10-02 Thread Daniel Wabyick
Yeah - I used that at first ... Although I think the DeMorgan's law would be: !( A && B ) = !A || !B So then ... A && B = !( !A || !B ) ... Sam Shrefler wrote: > Daniel: > > Thanks...the other thing I tried that worked was using the ||, so as > per DeMorgans law: > > A && B = !A || !B >

Re: [flexcoders] Conditional Login inside curly braces for binding

2006-10-02 Thread Peter Hall

Re: [flexcoders] Conditional Login inside curly braces for binding

2006-10-02 Thread Sam Shrefler
Daniel:   Thanks...the other thing I tried that worked was using the ||, so as per DeMorgans law:   A && B = !A || !B   Thanks Sam   On 10/2/06, Daniel Wabyick <[EMAIL PROTECTED]> wrote: Ran into the same thing. Its that '&' is an entity in XML. So you can use:enabled="{checkA == something

Re: [flexcoders] Conditional Login inside curly braces for binding

2006-10-02 Thread Daniel Wabyick
Ran into the same thing. Its that '&' is an entity in XML. So you can use: enabled="{checkA == something && checkB == somethingElse}" Sam Shrefler wrote: > Is there anyway to put a condition inside { } for example: > > enabled="{checkA == something && checkB == somethingElse}" > > Flex Bu