2 Replies Latest reply on Jun 4, 2009 1:45 PM by rob_parkhill

    CSS and Variables

    rob_parkhill Level 1

      Good Day,

       

      I want to allow my users to set the Application Background color.

       

      So, I have:

      <mx:Script>

      <![CDATA[

      [Bindable] public var applicationBackground:String="#00cc00";

      ]]>

      </mx:Script>

       

      for the variable and then:

       

      <mx:Style>

      Application {backgroundColor: applicationBackground;}

      </mx:Style>

       

      to apply the color.  I have another component with a color picker and a function that will set the applicationBackground to the chosen color.

       

      When I run the application, I see only black background, as opposed  to my selected color.

       

      What am I missing?

       

      Thanks!

       

      Rob