3 Replies Latest reply on Jan 16, 2011 12:22 AM by Wrataxas

    Declaring skin states in an MXML component?

    Wrataxas Level 2

      From the docs, you can declare skin states in a .as file before the class declaration, like this:

       

      [SkinState("up")] 
      [SkinState("over")] 
      [SkinState("down")] 
      [SkinState("disabled")] 
      public class Button extends Component { .. } 

       

      But how do declare states in a .mxml file?  There is no "public class ..." statement to precede.