home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- set me to the clickOn
- set oldlevel to the soundLevel
- set bottom to 25
- set inc to (the height of sprite me - bottom) / 7
- repeat while the mouseDown
- set mv to the mouseV
- set v to mv - the top of sprite me
- set level to 8 - (v / inc)
- if level > 7 then
- set level to 7
- else
- if level < 0 then
- set level to 0
- end if
- end if
- if oldlevel <> level then
- set the soundLevel to level
- if oldlevel = 0 then
- puppetSound(2, the number of cast "interface.iff")
- end if
- set oldlevel to level
- end if
- updateStage()
- set the castNum of sprite me to the number of cast ("v-" & level)
- end repeat
- end
-