flex vbox 右键问题
public function addContextMenu1():void { var defaultContextMenu:ContextMenu = new ContextMenu(); defaultContextMenu.hideBuiltInItems(); var arrangeItem0:ContextMenuItem = new ContextMenuItem("大图标"); arrangeItem0.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, selectHandler1); defaultContextMenu.customItems.push(arrangeItem0); var arrangeItem1:ContextMenuItem = new ContextMenuItem("小图标"); arrangeItem1.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, selectHandler1); defaultContextMenu.customItems.push(arrangeItem1); func.contextMenu = defaultContextMenu; }<mx:VBox id="func" width="100%" height="100%" borderStyle="solid" verticalGap="0"> </mx:VBox>