晓珍在上个帖子中说
引用:
请问上面的朋友你说的第一方法我不太明白??单独的MIAN是什么意思?
新建一个dir文件(soundplay.dir),在其帧脚本中加入如下代码:
on exitFrame me
if not(soundBusy(1)) then
soundmember = "music"& random(8)-1 --随机播放背景音乐
sound(1).play(member (soundmember))
end if
go the frame
end
注:声音member的命名为music0~music7
然后在主文件的影片剧本中加入如下代码:
on preparemovie
miaw = window("soundplay")
miaw.filename = "soundplay"
miaw.visible = false
end preparemovie