Please check the code:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
layout="absolute" backgroundGradientAlphas="[1.0, 1.0]" 
backgroundGradientColors="[#000033, #000033]">
<mx:Script>
<![CDATA[
[Bindable]
private var setData:Array = [
        {label:"Menu", type:"normal", children:[
        {label: "A", type:"radio", groupName: "S1"},
        {label: "B", type:"radio", groupName: "S1", toggled:true},
        {label: "C", type:"check",toggled:true }]}];            
        ]]>
</mx:Script>

<mx:Style>
.menuStyle {
        iconColor: #ffff00;
        background-color: #000033;
        textSelectedColor: #000000;
        color: #cccc00;
}
</mx:Style>

<mx:MenuBar dataProvider="{setData}" menuStyleName="menuStyle" 
></mx:MenuBar>  

</mx:Application>

Reply via email to