home *** CD-ROM | disk | FTP | other *** search
- on showVolumePalette
- global SELorgH, SELorgV, stageCenterH, PALspr2, PALspr3
- hideVOL()
- set vOff to 20
- set hOff to 11
- set increm to 20
- set barH to stageCenterH - 70
- puppetSprite(PALspr2, 1)
- puppetSprite(PALspr3, 1)
- set the castNum of sprite PALspr2 to the number of cast "volumeBar"
- set the locH of sprite PALspr2 to barH
- set the locV of sprite PALspr2 to SELorgV + vOff
- set level to the volume of sound 1 / 36
- set sliderH to barH + (level * increm) - 2
- set sliderV to SELorgV + vOff
- set the castNum of sprite PALspr3 to the number of cast "volumeSlider"
- set the locH of sprite PALspr3 to sliderH
- set the locV of sprite PALspr3 to sliderV
- puppetSound("pop")
- updateStage()
- end
-
- on hideVOL
- global PALspr2, PALspr3
- set the locH of sprite PALspr2 to -1000
- set the locH of sprite PALspr3 to -1000
- updateStage()
- end
-