I played first time with this component.
I can use it for a web menu.
How can I get the Edit item?
Assume that the text Edit could be like buton with name About us.
I can get the menu items but the menubar not.

Thanks

Code:
// MenuBar definition
var my_mb : mx.controls.MenuBar;
my_mb.setSize (940, 25)
my_mb.move (5, 15)
trace ('my_mb: ' + my_mb.getDepth ())
//
var myDP_xml : XML = new XML ();
myDP_xml.ignoreWhite = true;
myDP_xml.onLoad = function (success : Boolean)
{
	if (success)
	{
		my_mb.dataProvider = myDP_xml.firstChild;
		trace (myDP_xml.toString ());
	} else 
	{
		trace ("error loading XML file");
	}
};
myDP_xml.load("http://www.flash-mx.com/mm/xml/menubar.xml");
// set depth for MenuBar
bg.setDepthBelow(my_mb);
// Add a change-listener to Menu to detect which menu item is selected.
var menuListener:Object = new Object();
menuListener.change = function(evt_obj:Object) {
 var item_obj:Object = evt_obj.menuItem;
 trace("Item selected: "+item_obj.attributes.label);
};
my_mb.addEventListener("change", menuListener);