AS3 如何设置右键菜单
2012-04-25 13:23
253 查看
function tab() { } //End of the function function toJave_Lin_BaiDu_Home() { getURL("http://hi.baidu.com/linrao", "_blank"); } //End of the function function toJave_Lin_CSDN_Home() { getURL("http://blog.csdn.net/linjf520", "_blank"); } //End of the function function showMenuHandler():Object { trace("test"); return "test"; } //End of the function var expandmenu = new ContextMenu(); expandmenu.hideBuiltInItems(); var item1 = new ContextMenuItem("toJave_Lin_BaiDu_Home", toJave_Lin_BaiDu_Home, true, true, true); var item2 = new ContextMenuItem("toJave_Lin_CSDN_Home", toJave_Lin_CSDN_Home, true, true, true); expandmenu.customItems.push(item1, item2);//添加菜单 expandmenu.onSelect = showMenuHandler;//显示菜单时的事件 _root.menu = expandmenu;//设置主时间轴右键关联菜单
相关文章推荐
- DevExpress GridView使用技巧之如何添加和设置右键菜单
- 如何设置secureCRT的鼠标右键为弹出文本操作菜单功能
- 如何设置secureCRT的鼠标右键为弹出文本操作菜单功能
- 如何设置eclipse 右键new的菜单
- 如何设置在右键菜单中打开Powershell
- Telerik RadGridView 右键菜单如何设置?
- 如何屏蔽Real控件的右键菜单??
- 如何给CTreeCtrl 添加右键菜单
- C# 如何在 Windows 文件系统中添加自定义右键菜单
- 设置secureCRT的鼠标右键为弹出文本操作菜单功能
- Eclipse右键New菜单项如何进行自定义设置
- as3——隐藏右键菜单as3——隐藏右键菜单,改变对齐方式
- 鼠标右键菜单是单调的灰白色如何性化Win7鼠标右键菜单背景
- Notepad++如何添加到右键菜单
- Win7如何自定义鼠标右键菜单 添加新建文本文档
- ubuntu14.04,如何使用鼠标右键菜单在shell中打开选择项目?
- C#.NET常见问题(FAQ)-如何给Listbox添加右键菜单
- Win7桌面右键菜单小工具选项如何删除没有太多作用
- AS3 右键菜单
- 如何修改注册表,找回丢失的MSE右键菜单