Item click event for PopUpMenuButton
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:PopUpMenuButton id="button" labelField="@label" itemClick="button.label = event.label"> <mx:dataProvider> <mx:XMLListCollection> <mx:XMLList> <item label="A"> <item label="A1" /> <item label="A2" /> </item> <item label="B"> <item label="B1" /> <item label="B2" /> </item> </mx:XMLList> </mx:XMLListCollection> </mx:dataProvider> </mx:PopUpMenuButton> </mx:Application>