Perfect Gordon thanks. Never thought of that. I understand the reasoning
behind this. Even though it's not easy to read, an interaction designer can
learn this faster then vars and functions etc... for basic interaction
logic.

Jason



-----Message d'origine-----
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] la
part de Gordon Smith
Envoyé : mardi 16 mai 2006 23:19
À : flexcoders@yahoogroups.com
Objet : RE: [flexcoders] Using a logical AND in property.


<, >, and & are special characters in XML and therefore in MXML. You can't
use them in attribute values as is; you have to encode them as the
"entities" &lt; &gt; and &amp;

Therefore the way to write && in an attribute value is &amp;&amp;

It's ugly, but if we broke this rule in MXML you wouldn't be able to
maniupulate MXML with standard XML tools.

- Gordon


-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason Hawryluk
Sent: Tuesday, May 16, 2006 6:46 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Using a logical AND in property.

I've tried about 10-20 different ways just can't seem to make it work. I
suppose that a function is the only way, but it's unfortunate. Being able to
compare 1 or more bound values in order to get the result would be very
handy in my particular case.

Below is the error I get.

Error: The entity name must immediately follow the '&' in the entity
reference.



On a good note I did get this to work

{value1.selected==value2.selected}

but that will only do in certain circumstances.


Thanks for your help. I'm still trying to get Flex to do it, if anyone has
any ideas...

Jason


-----Message d'origine-----
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] la
part de Michael Schmalle
Envoyé : mardi 16 mai 2006 15:24
À : flexcoders@yahoogroups.com
Objet : Re: [flexcoders] Using a logical AND in property.


Hi,

I don't even know if you can do it but, did you try using parenthesis ?

Peace, Mike


On 5/16/06, sourcecoderia <[EMAIL PROTECTED]> wrote:
I'm wanting to be able to do something like the below, where the &&
operator is used for a locale compare on the Boolean values, however I
keep getting errors with the various methods I've tried.

<mx:CheckBox enabled="{value1.selected==true &&
value2.selected==true }" label="myitem" id="chk_item" />

Where values(1 and 2) are other checkbox controls.

Any ideas on a good way to do the above. I'm trying to stay away from
script as much as possible for this type of stuff in order to keep it
as simple as possible for the UI designer.

Thanks

Jason






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS

Visit your group "flexcoders" on the web.

To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.







--
What goes up, does come down.

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS

Visit your group "flexcoders" on the web.

To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS

Visit your group "flexcoders" on the web.

To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to