function tab() {
}
function url1() {
getURL("http://513560675.qzone.qq.com", "_blank")
}
function url2() {
getURL("http://365227503.qzone.qq.com", "_blank")
}
function url3() {
getURL("http://365227503.qzone.qq.com", "_blank")
}
function quit1() {
fscommand("quit", "")
}
var expandmenu = new ContextMenu()
expandmenu.hideBuiltInItems()
var $tab1 = new ContextMenuItem("QQ:365227503", tab, false, false, true)
var $url1 = new ContextMenuItem("g!vёυp﹖", url2)
var $tab2 = new ContextMenuItem("QQ:513560675", tab, true, false, true)
var $url2 = new ContextMenuItem("宝贝潴潴", url1)
var $tab3 = new ContextMenuItem("゛缘起缘灭.", tab, true, false, true)
var $url3 = new ContextMenuItem(" 缘以尽 .! ", url3)
expandmenu.customItems.push($tab1, $url1, $tab2, $url2, $tab3, $url3, $tab4, $url4, $tab5, $url5)
expandmenu.onSelect = menuHandler
_root.menu = expandmenu
AS2代码:var my_cm:ContextMenu = new ContextMenu()
my_cm.hideBuiltInItems()
my_cm.customItems.push(new ContextMenuItem("版权", new_menu, true))
function new_menu(obj, item) {
getURL("http://hi.baidu.com/tbg0531/ihome/ihomefeed")
}
this.menu = my_cm
AS3代码:
var myContextMenu = new ContextMenu()
myContextMenu.hideBuiltInItems()
var ss:ContextMenuItem=new ContextMenuItem("新增右键菜单")
ss.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,onthis)
myContextMenu.customItems.push(ss)
this.contextMenu = myContextMenu
function onthis(evt:ContextMenuEvent):void {
navigateToURL(new URLRequest("http://hi.baidu.com/tbg0531/ihome/ihomefeed"))
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)