看到别人作了一个右键菜单.感觉不错.其它大家可以多多应用他.所以作个小例子出来. 大家可以应用于多媒体演示等地方.
核心代码如下:
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://flashempire/school/", "_blank");}_root.menu = empiremue;
无忧CMS,5ucms.org建站仿站首选!
上一篇:5ucms插件,Flash MX 2004 中的文本遮罩 下一篇:5ucms模版,Flash MX 2004导入Adobe文档 |
|
本站声明:本网站所载文章等内容,目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。如涉及作品内容、版权及其它问题,请在30日内与本网联系(Email:3876307#qq.com),我们将在第一时间删除内容。若原创内容转载请注明出处。 5ucms培训,FLASH右键菜单的应用的关键词: |