Flash 右键菜单定制

放大菜单失效

newMenu=new Object();
newMenu.onMouseMove=function(){
  Stage.scaleMode="noScale";
}
Mouse.addListener(newMenu);

右键菜单失效

_root.createTextField("newMenu",999,0,0,Stage.width,Stage.height);

翻一下硬盘里的东西,备份到这里来。

下面是闪客上面的例子:

var empiremue = new ContextMenu();
//删除原始菜单状态!
empiremue.hideBuiltInItems();
//自定义菜单项目!
empiremue.customItems.push(new ContextMenuItem("返回首界面", home));
empiremue.customItems.push(new ContextMenuItem("返回到一副", h1));
empiremue.customItems.push(new ContextMenuItem("返回到二副", h2));
empiremue.customItems.push(new ContextMenuItem("返回到三副", h3));
empiremue.customItems.push(new ContextMenuItem("返回到四副", h4));
empiremue.customItems.push(new ContextMenuItem("返回到五副", h5));
empiremue.customItems.push(new ContextMenuItem("返回到六副", h6));
empiremue.customItems.push(new ContextMenuItem("去[闪客帝国]学习", gotoempire));
//菜单子程序执行目标...
function home() {
  _root.gotoAndStop(1);
}
function h1() {
  _root.gotoAndStop(2);
}
function h2() {
  _root.gotoAndStop(3);
}
function h3() {
  _root.gotoAndStop(4);
}
function h4() {
  _root.gotoAndStop(5);
}
function h5() {
  _root.gotoAndStop(6);
}
function h6() {
  _root.gotoAndStop(7);
}
function gotoempire() {
  getURL("http://www.flashempire.com/school/", "_blank");
}
_root.menu = empiremue;




[本日志由 jack 于 2006-06-29 02:36 PM 编辑]
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags: Flash 右键菜单 定制
相关日志:
评论: 0 | 引用: 0 | 查看次数: -
发表评论
昵 称:
密 码: 游客发言不需要密码.
内 容:
验证码: 验证码
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.