home *** CD-ROM | disk | FTP | other *** search
- global gslevel
-
- on startMovie
- puppetSprite(38, 1)
- set gslevel to the soundLevel
- end
-
- on place spnum, castno, h, v
- set the type of sprite spnum to 1
- set the ink of sprite spnum to 0
- set the foreColor of sprite spnum to 255
- set the backColor of sprite spnum to 0
- set the castNum of sprite spnum to castno
- set the locH of sprite spnum to h
- set the locV of sprite spnum to v
- updateStage()
- end
-
- on setflower
- set movh to 226 + (12 * gslevel)
- place(38, 83, movh, 422)
- end
-
- on chvolume
- set gslevel to item 2 of the name of cast the castNum of sprite clickOn()
- set gslevel to value(gslevel)
- setflower()
- set the soundLevel to gslevel
- set the soundEnabled to 1
- end
-
- on changevol
- set nowvol to value(the castNum of sprite 26 - 4)
- set clicksp to value(char 2 of the name of cast the castNum of sprite clickOn())
- if clicksp <> 0 then
- puppetSound("volume")
- updateStage()
- repeat while soundBusy(1)
- nothing()
- end repeat
- end if
- set vol to nowvol + clicksp
- if vol > 7 then
- set vol to vol - 8
- end if
- set the castNum of sprite 26 to 4 + vol
- updateStage()
- set the soundLevel to vol
- set the soundEnabled to 1
- end
-