如何在dir里面控制声音,详情见内,有点怪!!
global gSndVol
put the volume of sound(1) into gSndVol --存储当前音量
在按钮上附加如下脚本:
on mouseup me
global gSndVol
if (the volume of sound(1))>0 then --当前为第一遍播放
puppetsound "your sound member name"
set the volume of sound(1) to 0
else
puppetsound "your sound"
set the volume of sound(1) to gSndVol
end if
语句不是太好,但可实现一次有声一次无声,要是有个无声的声音文件就更好一些。