加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

定制FLASH右键菜单

发布时间:2020-12-15 06:22:41 所属栏目:百科 来源:网络整理
导读://此代码放到按钮on或影片剪辑onClipEvent(load)事件中AS2 function?none() { }?//?End?of?the?function function?myqzone() { ????getURL("http://4407996.qzone.qq.com",?"_blank"); }?//?End?of?the?function function?chat(){ getURL("http://wpa.qq.c

//此代码放到按钮on或影片剪辑onClipEvent(load)事件中AS2

function?none()
{
}?//?End?of?the?function
function?myqzone()
{
????getURL("http://4407996.qzone.qq.com",?"_blank");
}?//?End?of?the?function
function?chat(){
getURL("http://wpa.qq.com/msgrd?V=1&Uin=4407996&Site=stonesky.51r.com&Menu=yes","_blank");
}
Stage.scaleMode?=?"noScale";
var?newmenu?=?new?ContextMenu();
newmenu.hideBuiltInItems();
var?none?=?new?ContextMenuItem("我的QQ空间",?none,?false,?true);
var?qzone?=?new?ContextMenuItem("+本本主义+",?myqzone);
var?chat=new?ContextMenuItem("有事您Q我!--4407996",chat)
newmenu.customItems.push(none,?qzone,chat);
newmenu.onSelect?=?menuHandler;
_root.menu?=?newmenu;

?

?

?

//----------------------------以下代码可以放到第一帧位置-----------------------------------

function tab() {

}

function homepage() {

???getURL("http://www.rupeng.com","_blank");

}

function qme() {

???getURL("http://www.rupeng.com","_blank");

}

function speed() {

???_quality = "MEDIUM";

}

function speedAquality() {

???_quality = "high";

}

function quality() {

???_quality = "best";

}

function exit() {

???getURL("javascrīpt:window.close()");

}

//定义菜单对象expandmenu

var expandmenu = new ContextMenu();

expandmenu.hideBuiltInItems();

//定义右键菜单

//new ContextMenuItem(caption,callbackFunction,[ separatorBefore,[ enabled,[ visible ] ] ] )

var $tab1 = new ContextMenuItem("----版权所有----:",tab,false,true);

var $btn1 = new ContextMenuItem("鼠标炸弹|www.rupeng.com",homepage);

var $btn2 = new ContextMenuItem("QQ:110",qme);

var $tab2 = new ContextMenuItem("----功能菜单----:",true,true);

var $btn3 = new ContextMenuItem("优化显示速度 (推荐)",speed);

var $btn4 = new ContextMenuItem("优化显示质量 (配置较高用户)",quality);

var $btn5 = new ContextMenuItem("兼顾显示质量与速度 (默认)",speedAquality);

var $btn6 = new ContextMenuItem("退出/关闭本页",exit);

//使用 customItems 数组将新的菜单项添加到ContextMenu 对象 expandmenu

expandmenu.customItems.push($tab1,$btn1,$btn2,$tab2,$btn3,$btn4,$btn5,$btn6);

//将 expandmenu 对象与对象_root.menu 相关联

_root.menu = expandmenu;

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读