首页 > 娱乐 > Director教程-AVI播放器制作(二0
Director教程-AVI播放器制作(二0
网上收集 2008/2/25 8:12:38 (390)
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播放器播放效果
阅读(390) (责任编辑:城市网)
关于我们 - 联系我们 - 网站荣誉 - 广告服务 - 版权声明 - 网站地图
Copyright© 2007-2018 bj1.com.cn 首都热线 版权所有 QQ:165687462
中国·北京 粤ICP备14047004号-20