home *** CD-ROM | disk | FTP | other *** search
- on VolumeDrag dir
- global endSection, NextFrame, lastFrame
- set me to the clickOn
- if not (the puppet of sprite me) then
- puppetSprite(me, 1)
- end if
- set inc to (the height of sprite me - 25) / 7
- set bottom to the bottom of sprite me - 25
- repeat while the mouseDown
- if the frame < label("medicin") then
- set f to (the movieTime of sprite 15 / 4) + 20
- set g to (the movieTime of sprite 15 / 4) + 9
- if f > endSection then
- set the movieRate of sprite 15 to 0
- if char 1 to 4 of lastFrame = "fall" then
- EndDance()
- else
- go(the frame)
- end if
- else
- go(g)
- end if
- end if
- 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
- set the soundLevel to level
- updateStage()
- set the castNum of sprite me to the number of cast ("vol" & level)
- end repeat
- end
-
- on SetVolume
- set me to 27
- puppetSprite(me, 1)
- set the castNum of sprite me to the number of cast ("vol" & the soundLevel)
- end
-