Components Flex


    width="600">
    
        
        import mx.events.MenuEvent;
        public function itemClickHandler(event:MenuEvent):void {
            event.currentTarget.label= "Send to: " + event.label;
        }
        [Bindable]
        public var menuData:Array = [
            {label: "A", data: "a"},
            {label: "B", data: "b"},
            {label: "C", data: "c"},
            {label: "D", data: "d"},
            {label: "E", data: "e"}
        ];
      
    

                            showRoot="true" 
                        dataProvider="{menuData}" 
                        label="Send to: Inbox"
                        itemClick="itemClickHandler(event);" />