博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
flex 添加右键链接
阅读量:6248 次
发布时间:2019-06-22

本文共 1273 字,大约阅读时间需要 4 分钟。

private var myMenu:ContextMenu;            private function setViewerVersion():void            {                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);                    }                }            }

 

转载地址:http://btria.baihongyu.com/

你可能感兴趣的文章
android数据绑定框架介绍
查看>>
Oracle SQL : delete from (query), delete which table's row?
查看>>
hdu 1009 FatMouse' Trade
查看>>
Filter过滤器
查看>>
Percona-Server/MySQL响应时间统计
查看>>
Curl POST to HTTPS url gives SSLRead() error:curl: (56) SSLRead() return error -9806
查看>>
WKWebView的Cookie问题小记
查看>>
Vue全家桶实战篇
查看>>
yii2-websocket | 基于 yii2 实现的 WebSocket 扩展
查看>>
在vue中使用Autoprefixed
查看>>
[译] Android Dev Summit 2018 应用(instant app 的总结 + 开源)
查看>>
Swift那些事之-代理和闭包传值
查看>>
GitHub优秀三方库推荐以及日常知识积累分享
查看>>
关于如何给for循环遍历出来的每一项注册事件并且在注册的事件里面打印出对应的下标...
查看>>
[小程序] mpVue 踩坑
查看>>
【其他】为公司项目个性化 Git 设置
查看>>
Android加快编译速度的另一种方法
查看>>
常见的Node.js攻击-恶意模块的危害
查看>>
Netty从没听过到入门 -- 服务器端详解(什么是netty?netty的应用场景是什么?netty的简易使用)...
查看>>
不要使用SBJSON(json framework)
查看>>