Flex 屏蔽右键菜单,并自定义菜单
?????? menu.variableRowHeight = true;??
?????? menu.addEventListener(MenuEvent.ITEM_CLICK, menuItemClickHandler);?????
??????
????? var point:Point = new Point(mouseX,mouseY);
????? point = localToGlobal(point);
????? menu.show(point.x,point.y);
?????? }
?? private function createMenuItems():Array
?? {
??? var menuItems:Array = new Array();
??? var menuItem:Object;
????????
??? menuItem = new Object;
??? menuItem.label = '清空画布';
??? menuItem.action = 'clearAll';
??? menuItems.push(menuItem);
???
??? menuItem = new Object;
??? menuItem.label = '选择背景';
??? menuItem.action = 'selectBackImage';
??? menuItems.push(menuItem);
?????
???? return menuItems;
?? }