主题:  控制声音快进的问题

zspzs

职务:普通成员
等级:1
金币:0.0
发贴:4
#12005/3/17 11:27:01
我制作了一个控制声音快进的按钮,在快进到声音结束时就停止了,而我想要的是快进到结束时就再从头播放,哪位高手帮帮忙,不胜感激!
按钮脚本如下:
on mouseUp
set the member of sprite 4 to "forwardin"
set forwardtime=sound(3).currenttime+20000
if forwardtime<member("11").duration then
sound(3).play([#member:member("11"),#starttime:forwardtime])
else
sound(3).stop()
set the member of sprite 2 to "backgray"
set the member of sprite 3 to "play"
set the member of sprite 4 to "forwardgray"
set the member of sprite 5 to "stopgray"
end if
end

编辑历史:[此帖最近一次被 ccloveaa 编辑过(编辑时间:2005-03-17 19:43:02)]


Super ChiCk

职务:版主
等级:5
金币:15.0
发贴:3502
#22005/3/17 19:45:17
我以为是什么样子的声音快进呢



on mouseUp
set the member of sprite 4 to "forwardin"
set forwardtime=sound(3).currenttime+20000
if forwardtime<member("11").duration then
sound(3).play([#member:member("11"),#starttime:forwardtime])
else
sound(3).play([#member:member("11"),#starttime:0])
set the member of sprite 2 to "backgray"
set the member of sprite 3 to "play"
set the member of sprite 4 to "forwardgray"
set the member of sprite 5 to "stopgray"
end if
end



看来楼主的lingo是一点也不会呀

编辑历史:[此帖最近一次被 ccloveaa 编辑过(编辑时间:2005-03-18 10:43:22)]


zspzs

职务:普通成员
等级:1
金币:0.0
发贴:4
#32005/3/18 8:17:52
谢谢ccloveaa,问题出在sound(3).stop(),现在已经解决!