2 Replies Latest reply on Dec 5, 2011 2:45 AM by Francisc

    Flex Custom MXML List ItemRenderer with States

    Francisc Level 3

      Hello,

       

      I have a custom MXML List ItemRenderer that has two states, depending on a property of the data object.

      I noticed that data is set when creation is complete (creationComplete) and not in the intitialize stage.

       

      So, in the creationComplete handler I do this:

       

      if(data.isTrue)

      {

          this.currentState='IsTrue';

      }

      else

      {

          this.currentState='NotTrue';                   

      }

       

      Is that the proper place to put this?

       

      Thank you.