home *** CD-ROM | disk | FTP | other *** search
- on fademe
- sound fadeOut 1, 2 * 60
- sound fadeOut 2, 2 * 60
- end
-
- on quickpause
- set ztimer to the timer + 4
- repeat while the timer < ztimer
- updateStage()
- end repeat
- end
-
- on FadeAllAudio
- global V1, V2
- set the timeoutScript to EMPTY
- set V1 to the volume of sound 1
- set V2 to the volume of sound 2
- repeat while (V1 + V2) > 0
- if V1 > 0 then
- set the volume of sound 1 to V1
- set V1 to V1 - 5
- end if
- if V2 > 0 then
- set the volume of sound 2 to V2
- set V2 to V2 - 5
- end if
- quickpause()
- updateStage()
- end repeat
- sound stop 1
- sound stop 2
- updateStage()
- set the volume of sound 1 to 255
- set the volume of sound 2 to 255
- end
-