1 Reply Latest reply on Jan 16, 2012 4:56 AM by jfb00

    controlBarContent background color

    jfb00 Level 3

      Hi,

      I have an application like:

      <?xml version="1.0" encoding="utf-8"?>

      <s:Application name="Application_test"

                     xmlns:fx="http://ns.adobe.com/mxml/2009"

                     xmlns:s="library://ns.adobe.com/flex/spark"

                     xmlns:mx="library://ns.adobe.com/flex/mx"

                     backgroundColor="black" >

      <fx:Script>

              <![CDATA[

                   public function init():void{

                      //load styles

                      styleManager.loadStyleDeclarations("styles/styles.swf");

      }

      ]]>

          </fx:Script>

       

          <s:layout>

              <s:VerticalLayout/>

          </s:layout>

          <s:controlBarContent>

              <s:VGroup width="100%">

                  <s:HGroup width="100%">

                     //4 components

                  </s:HGroup>

                  <s:HGroup width="100%" verticalAlign="middle">

                      <mx:MenuBar id="myMenu" labelField="@label" iconField="@icon" cornerRadius="10" />

                  </s:HGroup>

              </s:VGroup>

          </s:controlBarContent>

      </s:Application>

       

      How can I change the background color of controlBarContent?

      I am using styles.

       

      Thanks!