1 Reply Latest reply on Oct 28, 2011 11:30 AM by Shongrunden

    Declare constants different for different states

    NilsTT

      The "states" are a nice thing in flex, but I miss 1 CRUCIAL thing:

       

      How do you define the a constant that needs to be different in two states?

       

      It no problem to set the left.somestate on a button for example but I would like to define a constant different for two states e.g:

       

      const SomeNumber.StateA:Number = 4;

      const SomeNumber.StateB:Number = 7;

       

      Help pls