首页 | 互联网 | IT动态 | IT培训 | Cisco | Windows | Linux | Java | .Net | Oracle | 软件测试 | C/C++ | 嵌入式开发 | 存储世界 | 服务器
网络设备 | IDC | 安全 | 求职招聘 | 数字网校 | 网页设计 | 平面设计 | 技术专题 | 电子书下载 | 教学视频 | 源码下载 | 搜索 | 博客 | 论坛
 Dreamweaver | Flash
 Fireworks  | Frontpage
 HTML/CSS  | Javascript
 Photoshop  | CorelDraw
 AuotoCAD   | Illustrator
 Freehand
 3DMax    | Authorware
 Director   | Maya
 PP点点通 | 迅雷 | BT
 eMule | FlashGet | Nero
 Ghost | Outlook | IE
 Maxthon | Office
 QQ | MSN | 网易泡泡
 Skype | 雅虎通 | 新浪UC

最新文章

您现在的位置: 中国IT实验室 >> 多媒体 >> Director学习教程 >> 正文

Director制作具有Win XP 风格的菜单


ChinaItLab  2006-8-22 佚名  保存本文   推荐给好友  收藏本站


◆ 网页平面多媒体培训、认证考试免费咨询热线:400-700-5807   进入网络咨询平台


  b.编写菜单项选择棒行为脚本(响应范围只限于赋予本行为的角色),按窗口上角的 按钮,新建一个脚本,起名为“Show Bar Script”,设置其脚本类型(type)为“behavior”。然后在脚本编辑窗口里写入以下脚本:

--当鼠标移入当前菜单选择棒时,即用户选中某菜单项了

--让鼠标指针变成小手形状,且把菜单选择棒的透明度改成100(完全可见)

on mouseEnter

sprite (the currentSpriteNum).blend = 100

cursor 280

end mouseEnter

--当鼠标移出当前菜单选择棒时,即用户不选某菜单项了

--把鼠标指针还原成原来指针形状,且把菜单选择棒的透明度改成0(不可见)

on mouseLeave

sprite (the currentSpriteNum).blend = 0

cursor -1

end mouseLeave

--当用户在某一菜单选择棒上按下鼠标时,执行相应的操作

on mouseDown

-- 通过 the currentSpriteNum(鼠标点击的菜单选择棒的角色编号) 属性,

-- 可以让计算机知道用户选择的菜单项,进而使计算机做出相应的操作。

case (the currentSpriteNum) of

4:alert"跳转到 Windows XP 画面!"

5:alert"跳转到 Windows 2000 画面!"

6:alert"跳转到 Windows NT workstation 4.0 画面!"

7:alert"跳转到 Windows NT Sever 4.0 画面!"

8:alert"跳转到 Windows ME 画面!"

9:alert"跳转到 Windows 98 画面!"

10:alert"跳转到 Windows 95 画面!"

11:alert"跳转到 Windows CE 3.0 画面!"

12:alert"跳转到 Windows NT Embedded 画面!"

end case

end mouseDown

上一页  [1] [2] [3] [4] [5] [6] 下一页

【责编:runlz】


 相关文章  推荐文章
AfterEffects制作流光溢彩新年字幕
Painter手绘精美水彩荷花
灯光照明效果的Vray教程
三维设计专用技术名词解释
DIRECTOR去背技法步步高
使Director创作过程自动化
幻影动画特效制作
Director8新手上路--绘图工具
Director8新手上路--快速入门
Director中飞行动画特效制作
 文章评论