import mx.controls.*;
import mx.events.*;
private var myMenu:Menu;
private function initMenu():void {
myMenu = new Menu();
var dp:Object = [{label: "A"},
{label: "B"},
{label: "C"}
];
myMenu.dataProvider = dp;
myMenu.addEventListener("itemClick", changeHandler);
popB.popUp = myMenu;
}
private function changeHandler(event:MenuEvent):void {
var label:String = event.label;
popTypeB.text=String("Moved to " + label);
popB.label = "Put in: " + label;
popB.close();
}