1 Reply Latest reply on Apr 9, 2009 2:48 PM by run,ryan!

    Event metadata name constant

      hello,

       

      I am a young new Flexer that has a question:

       

      When I define a style for my component using the style metadata tag as so:

       

      [Style(name="backgroundColor", type="uint", format="color", inherit="no")]

       

      can I reference a constant for the name property, instead of explicitly typing 'backgroundColor', as so:

       

      [Style(name=StandardCSSNames.BACKGROUND_COLOR, type="uint", format="color", inherit="no")]

       

      so that if I need to change that property name later in time, it'll be easier than to traverse my class definitions for occurences.

       

      Thanks for your time. Max