to define the data for the Menu control" src="http://www.rntsoft.com/Code/FlexImages/UsemxXMLtodefinethedatafortheMenucontrol.PNG"
import mx.controls.Menu;
private function createAndShow():void {
var myMenu:Menu = Menu.createMenu(null, myMenuData, false);
myMenu.labelField="@label";
myMenu.show(10, 10);
}