2 Replies Latest reply on Aug 22, 2008 6:45 AM by Newsgroup_User

    Embed ActionScript in "enabled" property of MXML element

    anoweb Level 1
      I have a button whose enabled state I'd like to bind to an actionscript expression, such as:

      <mx:Button enabled="{someList != null && someList.length > 0}" />

      This gives an error: "the entity name must immediately follow the '&' in the entity reference"

      Any idea?