home *** CD-ROM | disk | FTP | other *** search
- on setMusicVol mLevel
- global gReturnValue, mFinalVolume
- set mousePos to the mouseH
- if mousePos > 470 then
- set mousePos to 470
- else
- if mousePos < 335 then
- set mousePos to 335
- end if
- end if
- set the locH of sprite 30 to mousePos
- readini("SCIFI.INI", "[AUDIO]", "EFFECTS VOLUME")
- set tempvolume to gReturnValue
- set the volume of sound 1 to mLevel
- puppetSound("pageturn.aif")
- updateStage()
- set counter to 1
- repeat while counter < 10000
- set counter to counter + 1
- end repeat
- set the volume of sound 1 to tempvolume
- set the volume of sound 2 to mLevel
- set mFinalVolume to mLevel
- end
-
- on setEffectsVol eLevel
- global eFinalVolume
- set mousePos to the mouseH
- if mousePos > 470 then
- set mousePos to 470
- else
- if mousePos < 335 then
- set mousePos to 335
- end if
- end if
- set the locH of sprite 31 to mousePos
- set the volume of sound 1 to eLevel
- puppetSound("pageturn.aif")
- updateStage()
- set eFinalVolume to eLevel
- end
-