var menuItem:ContextMenuItem = new ContextMenuItem("技术支持:中科天宇软件有限公司", true, true);
menuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, function(event:ContextMenuEvent):void
{
navigateToURL(new URLRequest("http://www.tiannyu.com/"));
});
myMenu = new ContextMenu();
myMenu.customItems.push(menuItem); myMenu.hideBuiltInItems();
this.contextMenu = myMenu; if (this.contextMenu)
{
if (this.contextMenu["customItems"] is Array)
{
while((this.contextMenu["customItems"] as Array).length>0)
{
(this.contextMenu["customItems"] as Array).pop();
}
(this.contextMenu["customItems"] as Array).push(menuItem);
}
else if (this.contextMenu["addItem"])
{
this.contextMenu["addItem"](menuItem);
}
}

最新文章

  1. JS实战 · 仿css样式选择器
  2. 求解最大矩形面积 — leetcode 85. Maximal Rectangle
  3. 4.了解AngularJS模块和依赖注入
  4. 【Passport】微软过时的技术
  5. [转载]# Ajax异步请求阻塞情况的解决办法
  6. Powershell 快捷键
  7. 解读QML之二
  8. python py_innodb_page_info.py -v /usr/local/var/mysql/ibdata1
  9. 学习Redux之分析Redux核心代码分析
  10. php中有关合并某一字段键值相同的数组合并
  11. mysql从5.5直接升级到5.7后,执行mysql_upgrade速度很慢且执行结束后数据目录大小增加一倍及 mysqlpump备份出现1577错误
  12. 解决多个div左浮动后不换行问题
  13. 算法进阶面试题05——树形dp解决步骤、返回最大搜索二叉子树的大小、二叉树最远两节点的距离、晚会最大活跃度、手撕缓存结构LRU
  14. android: ADB错误“more than one device and emulator”
  15. Eclipse \ MyEclipse \Scala IDEA for Eclipse里如何将控制台console输出的过程记录全程保存到指定的文本文件(图文详解)
  16. aiohttp简介及快速使用
  17. Learn Rails5.2- Scaffolding and REST,flash.now, flash.keep; Access via JSON
  18. webform调用windows服务
  19. [转]NLog 自定义字段 写入 oracle
  20. [Python爬虫] Selenium +phantomjs 模拟下拉滚动条

热门文章

  1. Siri开源了,33%的开发者持疑虑态度,你呢?
  2. linux 文件权限 初级
  3. WPF 程序检测 windows 关机
  4. ASP.NET的运行原理与运行机制 如何:为 IIS 7.0 配置 <system.webServer> 节
  5. 分享书籍[writing idiomatic python ebook] 二
  6. Using Amazon API Gateway with microservices deployed on Amazon ECS
  7. jQuery中append()与appendto()用法分析
  8. Swift实战-QQ在线音乐(AppleWatch版)
  9. 显示和隐藏Mac下的 隐藏文件
  10. UVa 10007 - Count the Trees(卡特兰数+阶乘+大数)