Lisa

mxml files are "made out of" XML, so you have to obey XML rules, so using 
chars like < and & and > confuse the XML parser.  All you have to do is 
replace them with standard XML entity references... so && becomes &amp;&amp;

Darren



>From: "Lisa Nelson" <[EMAIL PROTECTED]>
>Reply-To: flexcoders@yahoogroups.com
>To: <flexcoders@yahoogroups.com>
>Subject: [flexcoders]  bind "enabled" to 2 conditions with a logical and
>Date: Fri, 25 Aug 2006 13:34:52 -0700
>
>Dear All,
>
>I have some controls that I only want to be enabled if 2 conditions are
>true.  I want to do something like this:
>
><mx:ComboBox id="blah"
>                         dataProvider="{someArrayCollection}"
>                         labelField="someField"
>                         change="someFunction();"
>                         enabled="{condition1 && !condition2}" >
></mx:ComboBox>
>
>This is the error I get when I try:
>
>"The entity name must immediately follow the '&' in the entity
>reference.
>
>I've tried putting parentheses around the !condition2, but I get the
>same error.
>
>Just for giggles I tried using one & instead of two.  Same error.  Is
>what I want to do just illegal?  I would much prefer to do this with
>bindings than to have to capture every place where condition1 and
>condition2 might change and explicitly set the "enabled" property.
>
>--L




--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

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

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to