Menu labelField
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:s="library://ns.adobe.com/flex/spark"> <mx:XMLList id="dataProvider" xmlns=""> <menuitem label="File"> <menuitem label="New"/> <menuitem label="Open"/> <menuitem label="Open As"/> <menuitem label="Save"/> <menuitem label="Save As"/> <menuitem label="Close" enabled="false"/> </menuitem> <menuitem label="Edit"/> <menuitem label="Source"/> <menuitem label="View"> <menuitem label="50%" type="radio" groupName="one"/> <menuitem label="100%" type="radio" groupName="one" selected="true"/> <menuitem label="150%" type="radio" groupName="one"/> </menuitem> </mx:XMLList> <s:VGroup> <mx:MenuBar labelField="@label" itemClick="handleMenuClick(event)" dataProvider="{dataProvider}"/> <mx:Label id="subItemDisplayLabel"/> </s:VGroup> <mx:Script> import mx.events.MenuEvent; private function handleMenuClick(evt:MenuEvent):void { subItemDisplayLabel.text = evt.item.@label + " was selected"; } </mx:Script> </mx:Application>