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
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
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
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
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
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;
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 ==
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
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 ==
9 matches
Mail list logo