import mx.events.MenuEvent;
import mx.controls.Alert;
import mx.controls.Menu;
private function showMenu(event:MouseEvent):void{
var navMenu:Menu = Menu.createMenu(this, menuData);
navMenu.labelField="@label";
navMenu.addEventListener(MenuEvent.ITEM_CLICK, menuClickHandler);
navMenu.show(event.stageX,event.stageY);
}
private function menuClickHandler(event:MenuEvent):void{
Alert.show(event.item.@label, "Menu Selection");
}