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. mx:Label mx:doubleClickEnabled![CDATA[{ true true

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-03 Thread Gordon Smith
Or write the operator as amp;amp; - 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 curly braces

[flexcoders] Conditional Login inside curly braces for binding

2006-10-02 Thread Sam Shrefler
Is there anyway to put a condition inside { } for example: enabled={checkA == something checkB == somethingElse} Flex Builder throws an error The Entity must immediately follow the in the entity referecne. It seems to be a problem with the Logical Operator since || works fine. ThanksSam

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 amp;amp; checkB == somethingElse} Sam Shrefler wrote: Is there anyway to put a condition inside { } for example: enabled={checkA == something checkB == somethingElse} Flex Builder

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 ||, soas 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 amp;amp;

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

2006-10-02 Thread Peter Hall
mx:Button mx:enabled![CDATA[{checkA == something checkB == somethingElse}]/mx:enabled /mx:Button Peter 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 amp;amp; checkB ==

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 Thanks

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: mx:Buttonmx:enabled![CDATA[{checkA ==