width="600" creationComplete="initData();">
import mx.events.*;
import mx.controls.*;
private function initData():void {
Menu(p1.popUp).selectedIndex=2;
}
public function itemClickHandler(event:MenuEvent):void {
Alert.show("itemClick event label: " + event.label + " \nindex: " + event.index
+ " \nitem.label: " + event.item.label
+ " \nitem.data: " + event.item.data);
}
public function clickHandler(event:MouseEvent):void {
Alert.show(" Click Event currentTarget.label: " + event.currentTarget.label);
}
[Bindable]
public var menuDP:Array = [
{label: "A", data: "a"},
{label: "B", data: "b"},
{label: "C", data: "c"},
{label: "D", data: "d"},
{label: "E", data: "e"}
];