导航:首页 - Director教程-AVI播放器制作(二0

Director教程-AVI播放器制作(二0
作者:深圳教育在线 来源:szedu.net 更新日期:2008-2-25
9) 选中舞台上的精灵3,打开Script窗口为其添加以下的Lingo语句,如图7-153所示。
on mouseUp me
   set the castnum of sprite 2 to member("lau")
    set the castnum of sprite 3 to member("ld")
    set the castnum of sprite 4 to member("playu")
    set the castnum of sprite 5 to member("stopu")
    set the castnum of sprite 6 to member("ru")
    set the castnum of sprite 7 to member("rau")
  updatestage
  set the movierate of sprite 1 to–2
end
图7-153  精灵3的脚本
(10) 选中舞台上的精灵4,打开Script窗口为其添加以下的Lingo语句,如图7-154所示。
on mouseUp me
  set the movierate of sprite 1 to 1
  set the castnum of sprite 2 to member("lau")
  set the castnum of sprite 3 to member("lu")
  set the castnum of sprite 5 to member("stopu")
  set the castnum of sprite 6 to member("ru")
  set the castnum of sprite 7 to member("rau")
end
图7-154  精灵4的Lingo脚本
(11) 选中舞台上的精灵5,打开Script窗口为其添加以下的Lingo语句,如图7-155所示。
on mouseUp me
  if (the castnum of sprite 7 = 8) then
    set the movietime of sprite 1 to the duration of the member of sprite 1
    set the castnum of sprite 2 to member("lau")
    set the castnum of sprite 3 to member("lu")
    set the castnum of sprite 4 to member("playd")
    set the castnum of sprite 5 to member("stopu")
    set the castnum of sprite 6 to member("rd")
    set the castnum of sprite 7 to member("rad")
    updatestage
  end if
end
图7-155  精灵5的Lingo脚本
(12) 选中舞台上的精灵6,打开Script窗口为其添加以下的Lingo语句,如图7-156所示。
on mouseUp me
set the movierate of sprite 1 to 2
  set the castnum of sprite 2 to member("lau")
  set the castnum of sprite 3 to member("lu")
  set the castnum of sprite 4 to member("playu")
  set the castnum of sprite 5 to member("stopu")
  set the castnum of sprite 6 to member("rd")
  set the castnum of sprite 7 to member("rau")
  updatestage
end
图7-156  精灵6的Lingo脚本
(13) 选中舞台上的精灵7,打开Script窗口为其添加以下的Lingo语句,如图7-157所示。
on mouseUp me
  if (the castnum of sprite 5 = 12) then
    set the movierate of sprite 1 to 0
    set the castnum of sprite 5 = member("stopd")
    updatestage
  end if
end
图7-157  精灵7的Lingo脚本
(14) 至此,AVI播放器动画的制作完成了,播放电影,效果如图7-158所示。
图7-158  AVI播放器播放效果

报 名 此 课 程 / 咨 询 相 关 信 息
【预约登门】 【网上咨询】 【订座试听】 【现在报名】
课程名称
Director教程-AVI播放器制作(二0
真实姓名
* 性 别
联系电话
* E-mail:
所在地区
咨询内容

      

相关文章:

Copyright© 2004-2010 www.szedu.net 深圳教育在线 版权所有
中国·深圳
粤ICP备06023013号