It's the rules of XML. An & character inside an attribute value is expected to be the beginning of an XML "entity" like < or & or { . So if you want an ampersand character, you have to write it as & .
Gordon Smith Adobe Flex SDK Team ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nathanpdaniel Sent: Tuesday, May 20, 2008 2:54 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Bug or bad programming? I have been working on a form where I have 3 fields. Two fields are RadioButton controls, the third a CheckBox control. Now it is as below: <mx:FormItem label="Access"> <mx:HBox width="100%"> <mx:RadioButtonGroup id="access" /> <mx:RadioButton label="Public" groupName="access" selected="true" value="{true}"/> <mx:RadioButton label="Private" groupName="access" value="{false}"/> </mx:HBox> </mx:FormItem> <mx:FormItem label="Status"> <mx:HBox width="100%"> <mx:RadioButtonGroup id="status" /> <mx:RadioButton label="Active" groupName="status" value="{true}" selected="true"/> <mx:RadioButton label="Inactive" groupName="status" value="{false}"/> <mx:CheckBox id="featured" label="Featured" enabled="{(status.selectedValue)?((access.selectedValue)? true:false):false}" /> </mx:HBox> </mx:FormItem> Looking at the checkbox enabled it shows: {(status.selectedValue)?((access.selectedValue)?true:false):false} A simple {status.selectedValue && access.selectedValue} would be desired, but it causes an error in Flex. I tried using || rather than && (just for kicks) and it works. Flex is wanting the && to be an html entity... So I was wondering, is this just bad programming on my part and I need to do something different, or is it a bug in Flex? -Nathan