home *** CD-ROM | disk | FTP | other *** search
- on soundControl a, b, c
- global theLocH, theLocV, windCast
- stopSound(1, 10)
- set me to the clickOn
- if the castNum of sprite me = c then
- if the mouseH > the locH of sprite me then
- set castNum to b
- else
- set castNum to a
- end if
- else
- if the castNum of sprite me = b then
- if the mouseH > the locH of sprite me then
- set castNum to c
- else
- set castNum to a
- end if
- else
- set castNum to b
- end if
- end if
- set the castNum of sprite me to castNum
- repeat while the mouseDown
- updateStage()
- end repeat
- if rollOver(me) then
- if the castNum of sprite me = b then
- Xsound("status")
- put the result
- if the result = "true" then
- Xsound("pause")
- go(the frame + 1)
- end if
- else
- if the castNum of sprite me = a then
- set the castNum of sprite me to c
- go("Start", "Color")
- else
- updateStage()
- Xsound("pause")
- pause()
- end if
- end if
- else
- set the castNum of sprite me to b
- updateStage()
- end if
- end
-