【问题标题】:flex context menu clipboard item clearflex 上下文菜单剪贴板项目清除
【发布时间】:2010-11-01 03:25:35
【问题描述】:

我在 flex air 应用程序中使用下面给出的代码使用上下文菜单。对我来说,所有上下文菜单剪贴板项目都可以正常工作,除了“清除”。

请指出我哪里错了。

var cMenu:ContextMenu = createContextMenu();

private function createContextMenu():ContextMenu
{               
        var editContextMenu:ContextMenu = new ContextMenu();
        editContextMenu.hideBuiltInItems();                     
        editContextMenu.clipboardMenu = true;
        editContextMenu.clipboardItems.cut = true;
        editContextMenu.clipboardItems.copy = true;
        editContextMenu.clipboardItems.paste = true;

         //NOT WORKING
         editContextMenu.clipboardItems.clear = true;

        return editContextMenu
    }

提前致谢。

【问题讨论】:

  • "clear" 当我选择一些文本然后在上下文菜单中删除。它不会删除选定的文本。

标签: actionscript-3 flex3 air


【解决方案1】:

您尝试清除的对象是否可能无法清除。 引用来自 livedocs

启用或禁用剪贴板菜单上的“删除”或“清除”项。 This should be enabled only if an object that can be cleared is selected.

【讨论】:

    猜你喜欢
    • 2013-08-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-10
    • 2012-01-23
    • 2018-10-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多