0 Replies Latest reply on Jul 19, 2011 10:43 AM by enridp

    Dynamic and inherited States in MXML not recognized

    enridp

      Hi ! can you explain how Flash Builder detects the states in MXML?

      It seems that it only parses the inline MXML declaration (and only strings!)

       

      <s:states>
              <s:State name="state1"/>
              <s:State name="state2"/>

      </s:states>

       

      but if you have states defined in the base class those states are not recognized when you type includeIn, excludeIn, etc.

      Even more ! if you make something like this:

       

      <s:states>
               <s:State name="{STATE_NAME}"/>
               <s:State name="state2"/>

      </s:states>

       

      Where STATE_NAME is a local var, Flash Builder doesn't recognize it either.

       

      Please tell me if this is a bug or a lack of feature, and in any case, if there is a workaround for this.

       

      I need to inherits my states, and use them in the child components.

       

      Thanks !

      Enrique.