アプリケーションのコンテキストメニューを作成しました。
if (!contextMenu)
{
contextMenu = new ContextMenu();
}
contextMenu.hideBuiltInItems();
contextMenu.addEventListener(ContextMenuEvent.MENU_SELECT,onContextMenuSelected);
_cmiEdit=new ContextMenuItem("Ändern");
_cmiEdit.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,onContextMenuItemSelected);
_cmiDelete=new ContextMenuItem("Löschen");
_cmiDelete.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,onContextMenuItemSelected);
contextMenu.customItems.push(_cmiEdit,_cmiDelete);
アプリでは、最初の Contextmenuitem のみが表示され、その理由がわかりません。Air では両方が表示されます。Flashplayer バージョン 11.8