7 Replies Latest reply on Jul 25, 2008 11:46 PM by DuoMi

    How to set the backgroundColor of MenuBarItem?

    DuoMi
      How to set the backgroundColor of MenuBarItem?

      My code is here:

      <?xml version="1.0"?>
      <!-- binding/BasicBinding.mxml -->
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#AABFCA, #98ACB6]">

      <mx:Style source="MainCss.css"/>



      <mx:MenuBar id="MainMenubar" labelField="@label">
      <mx:XMLList>
      <menuitem label="系统基础数据" >
      <menuitem label="店 铺 管 理"/>
      <menuitem label="产 品 管 理"/>
      <menuitem label="系统帐号管理"/>
      <menuitem label="顾客帐号管理"/>
      <menuitem label="设置产品折扣"/>
      <menuitem label="设置回访标记"/>
      <menuitem label="数 据 备 份"/>
      <menuitem label="店铺赠品设置"/>
      <menuitem label="操作记录查看"/>
      </menuitem>
      </mx:XMLList>
      </mx:MenuBar>

      </mx:Application>


      CSS file:

      /* CSS file */
      MenuBar
      {
      backgroundColor: #000000;
      }


      runing.........

      it's can't take effect

      please tell me How to set the backgroundColor of MenuBarItem? thank you very much!!!