[Bindable] public var dataColl:ArrayCollection=new ArrayCollection();
//ID编号 var k=1; //联系人对象 var userobj:Object; //性别默认状态 var sexobj:String="男"; //右键删除菜单 var menucont:ContextMenu; //初始化行数 var p:int=0;
public function init():void{ menucont=new ContextMenu(); addMenuItems(); } //添加右键菜单项 public function addMenuItems():void{ var item:ContextMenuItem = new ContextMenuItem("删除"); menucont.customItems.push(item); item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuItemHandler); menucont.hideBuiltInItems(); userdata.contextMenu = menucont; } //菜单右键事件处理 public function menuItemHandler(event:ContextMenuEvent):void{ var CaptionString:String=event.target.caption; if(CaptionString=="删除"){