home *** CD-ROM | disk | FTP | other *** search
- on chksound
- global bvolume, soundfadevol, nowsoundname
- set ml to point(mouseH(), mouseV())
- repeat with n = 1 to 3
- if inside(ml, the rect of sprite n) then
- go(getAt(["mall", "globe", "expo"], n))
- set nowsoundname_ to getAt(["park3.aiff", "zatto.aiff", "ojisan3.aiff"], n)
- if nowsoundname_ <> nowsoundname then
- set soundfadevol to bvolume
- set nowsoundname to nowsoundname_
- puppetSound(1, the number of cast nowsoundname)
- updateStage()
- end if
- set soundfadetime to bvolume
- set the volume of sound 1 to bvolume
- exit
- end if
- end repeat
- set nowsoundname to EMPTY
- if soundBusy(1) then
- set soundfadevol to soundfadevol - 60
- if soundfadevol < 0 then
- set soundfadevol to 0
- end if
- set the volume of sound 1 to soundfadevol
- end if
- end
-