tags:

views:

24

answers:

1

I need to specify more than one condition for visibilty

visible="{data.allow && data.open}"

However, this gives the error "The entity name must immediately follow the '&' in the entity reference."

I could use a function, but I'd like to know if it is possible to do this directly with different syntax.

+3  A: 

Because & is a special character in XML, you have to encode the & as &, so your expression would become visible="{data.allow && data.open}".

Read more in the Flex Help chapter "Specifying special characters in the text property".

splash
+1 Thanks a lot, splash especially for the additional resource.
HappyCoder4U