设为首页 加入收藏 网站搜索 繁體中文 中国建站网 — 站长资源分享平台

FLASH右键菜单的应用

来源:136z.Com 作者:佚名 时间:2005-04-07 23:22:27

看到别人作了一个右键菜单.感觉不错.其它大家可以多多应用他.所以作个小例子出来. 大家可以应用于多媒体演示等地方.

核心代码如下:

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/", "_blank");}_root.menu = empiremue;

Tags:

  • 好的评价 如果您觉得好,就请您
      0%(0)
  • 差的评价 如果您觉得差,就请您
      0%(0)
  • 相关文章
    广告赞助

    文章随便看看 设计素材 建站学院 网页模板 视频教程

    网友评论

    共有 0 位网友发表了评论,得分 0 分,平均 0 分    查看完整评论

    用户名: 查看更多评论

    分 值:100分 85分 70分 55分 40分 25分 10分 1分

    内 容:

             通知管理员 验证码: