3 Replies Latest reply on Nov 9, 2011 1:30 PM by Flex harUI

    Can I use constants in my Style declarations?

    stevemcl5

      I'm not good at reading colors in hex, so is there a way to use constants when defining my CSS Styles?

      ex:

      what I have:

      <fx:Style>

              @namespace s "library://ns.adobe.com/flex/spark";

              .myActionBar

              {

                  chromeColor: #990000;           

              }

      </fx:Style>

       

      what I want:

      RED = #990000;

      <fx:Style>

              @namespace s "library://ns.adobe.com/flex/spark";

              .myActionBar

              {

                  chromeColor: RED;           

              }

      </fx:Style>