用户名: 密码: 免费注册 忘记密码? 网站地图 | 加入收藏 | 设为首页
首页 | 新闻 | 工具 | 系统 | 办公 | 聊天 | 多媒体 | 网页 | 运营 | 平面 | 欣赏 | 数据库 | 程序 | 服务器 | 组网
网页 | 3dmax | Ghost | Windows Xp| Dreamweaver | photoshop | Flash | office | Alexa | Css | QQ | Asp | PHP | Jsp | Access
Flash MX 2004入门 | 网站推广策略 | CorelDRAW入门 | ASP学习 | 网站建设大师功 | Word入门
  iTbulo.com > 学院 > 多媒体教程 > Director教程 > 文章正文
Director 3D 基础(之四)
iTbulo.COM 2006-2-12 十年磨一剑()

八、使球体运动起来

添加了贴图之后,点击字样为“Set the Sphere in Motion”的文本运行旋转程序。脚本如下:

property pActive

on beginSprite(me)
pActive = FALSE
end beginSprite

on mouseUp(me)
pActive = TRUE
go next
end

on enterFrame(me)
if pActive then
tSprite = sprite(1)
tMember = tSprite.member
tMember.model(‘‘newSphere‘‘).rotate(0,0,-5)
end if
end

脚本流程:
1、当用户点击文本时,脚本把pActive的值设为TRUE,就可以使球旋转起来。
2、然后脚本设定每次进入当前帧时都使球旋转5个单位。

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

文章搜索
相关资讯
相关文章 相关下载
DIRECTOR去背技法步步高(二)
DIRECTOR去背技法步步高(一)
Director怎样制作自定义光标
Director 3D 基础(之七)
Director 3D 基础(之六)
焦点信息