[Bindable] public var dataColl:ArrayCollection=new ArrayCollection();
//ID編號(hào) var k=1; //聯(lián)系人對(duì)象 var userobj:Object; //性別默認(rèn)狀態(tài) var sexobj:String="男"; //右鍵刪除菜單 var menucont:ContextMenu; //初始化行數(shù) var p:int=0;
public function init():void{ menucont=new ContextMenu(); addMenuItems(); } //添加右鍵菜單項(xiàng) 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=="刪除"){