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 "volUpHi"
- updateStage()
- repeat while the stillDown
- if the soundLevel < 7 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 "volUpDim"
- puppetTransition(14)
- updateStage()
- set the castNum of sprite theSprite to the number of cast "volUpHi"
- updateStage()
- end if
- puppetTransition(0)
- end repeat
- set the castNum of sprite theSprite to the number of cast "volUpDim"
- updateStage()
- set gCurrentVolume to the soundLevel
- puppetSprite(theSprite, 0)
- end
-