home *** CD-ROM | disk | FTP | other *** search
- global cname
-
- on startMovie
- puppetSprite(26, 1)
- puppetSprite(30, 1)
- end
-
- on button
- set cname to item 1 of the name of cast the castNum of sprite clickOn()
- set the castNum of sprite clickOn() to the number of cast (cname & ",on")
- updateStage()
- repeat while the stillDown
- if rollOver(clickOn()) then
- set the castNum of sprite clickOn() to the number of cast (cname & ",on")
- updateStage()
- next repeat
- end if
- set the castNum of sprite clickOn() to the number of cast (cname & ",off")
- updateStage()
- end repeat
- set the castNum of sprite clickOn() to the number of cast (cname & ",off")
- updateStage()
- end
-
- on place spnum, castno, h, v
- set the type of sprite spnum to 1
- set the ink of sprite spnum to 36
- 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 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
-