尚易博文

尚易创意团队与您共分享

« 用了BitmapData类的图片“环绕”效果尚易创意谈色彩设计哲学 »

FLASH自定义右键代码

[ At 2011-11-23 By tancoll   0 comments ]

在第一帧动作区加入以下代码:

 

//设置右键菜单
var rightMenu = new ContextMenu();
rightMenu.hideBuiltInItems();
//删除原始菜单状态
rightMenu.customItems.push(new ContextMenuItem("创意地产回廊", M_home));
rightMenu.customItems.push(new ContextMenuItem("工坊档案室", M_about));
rightMenu.customItems.push(new ContextMenuItem("工坊数据库", M_show));
rightMenu.customItems.push(new ContextMenuItem("工坊传达室", M_blog));
rightMenu.customItems.push(new ContextMenuItem("工坊广播室", M_gb));
function M_home() {
  getURL("gbook.asp", "_blank");
}
function M_about() {
  getURL("gbook.asp", "_blank");
}
function M_show() {
  getURL("gbook.asp", "_blank");
}
function M_blog() {
  getURL("index.asp", "_blank");
}
function M_links() {
  getURL("gbook.asp", "_blank");
}
function M_gb() {
  getURL("gbook.asp", "_blank");
}
_root.menu = rightMenu;
//设置右键菜单为rightMenu

  • 相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

最新评论及回复

最近发表

Powered By Z-Blog 1.8 Walle Build 100427 Code detection by Codefense

Copyright 尚易博文 Your WebSite. Some Rights Reserved.