<mx:Button label="Sign In" enabled="{emailTextInput.text != '' && passwordTextInput.text != '' }" />
when you compile you get this error, "The entity name must immediately follow the '&' in the entity reference"
THe parser looks at the & and expects an entity reference because the &
signifies the start of an entity reference within XML. So how do we tell it that it's actually a condition-AND operator?
Replace each of the & '& a m p ;' <-- no spaces
Compile, and viola it works!
No comments:
Post a Comment