home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global gCurrentVolume
- set theSprite to the clickOn
- puppetSprite(theSprite, 1)
- set the castNum of sprite theSprite to the number of cast "volDownHi"
- updateStage()
- repeat while the stillDown
- if the soundLevel > 1 then
- set the soundLevel to the soundLevel - 1
- startTimer()
- repeat while the timer < 20
- end repeat
- set the castNum of sprite theSprite to the number of cast "volDownDim"
- puppetTransition(13)
- updateStage()
- set the castNum of sprite theSprite to the number of cast "volDownHi"
- updateStage()
- end if
- puppetTransition(0)
- end repeat
- set gCurrentVolume to the soundLevel
- set the castNum of sprite theSprite to the number of cast "volDownDim"
- updateStage()
- puppetSprite(theSprite, 0)
- end
-