1 Reply Latest reply on May 10, 2013 8:46 AM by Flex harUI

    Conditionally add mx component

    Szalejot Level 1

      I know, that adding components can be done in ActionScript. There I can do it conditionally.

      But can mx component be added conditionally in mxml code? I do not want to have lot of ActionScript code that creates component and sets its parameters. I would like to have nice xml-like mxml declaration and object is created only if certain logical condition is met.

      Is that possible?

       

      PS. I am using Flex 3.5