home *** CD-ROM | disk | FTP | other *** search
- global gstate, gnum, gdoor, gobjectlist, gdoorlist, gIdle, gMove, gsounddown, gProgress, gready
-
- on exitFrame
- if not gready then
- set gready to 1
- end if
- if gsounddown then
- if the stillDown and rollOver(41) then
- set maxV to the locV of sprite 41 - 60
- set minV to the locV of sprite 41 + 60
- set soundV to the mouseV
- if soundV < maxV then
- set soundV to maxV
- end if
- if soundV > minV then
- set soundV to minV
- end if
- set the locV of sprite 42 to soundV
- set the soundLevel to integer((minV - soundV) / (120 / 7))
- else
- set gsounddown to 0
- beep()
- end if
- end if
- repeat with anobject in gobjectlist
- hruntime(anobject)
- end repeat
- if not rollOver(gIdle) or the mouseDown then
- set the visible of sprite 40 to 0
- updateStage()
- end if
- if not rollOver(12) and not gMove then
- cursor(0)
- end if
- go(the frame)
- end
-
- on idle
- if not gMove and not (the mouseDown) and not gProgress then
- if gstate = 1 then
- set mode to 0
- else
- set mode to 10
- end if
- repeat with i = 11 to 19
- if rollOver(i) then
- set the memberNum of sprite 40 to 200 + mode + i
- set the locH of sprite 40 to the locH of sprite i
- set the locV of sprite 40 to the locV of sprite i + 33
- updateStage()
- set gIdle to i
- set the visible of sprite 40 to 1
- updateStage()
- end if
- end repeat
- end if
- end
-