home *** CD-ROM | disk | FTP | other *** search
- global activsp, activsam, activpage, nowrate, nowtime, endtime, mode
-
- on keyDown
- if activsp = 0 then
- exit
- end if
- mykey = the key
- case mykey of
- TAB:
- case mode of
- 3:
- exit
- 1:
- if the shiftDown then
- sendSprite(22, #action)
- else
- sendSprite(21, #action)
- end if
- exit
- 0:
- if the shiftDown then
- if activsam = 1 then
- activpage = 6
- activsp = 33
- setsamname()
- sendSprite(activsp, #getforcus)
- exit
- end if
- activsp = activsp - 1
- if activsp < 31 then
- activsp = 48
- activpage = activpage - 1
- setsamname()
- end if
- else
- if activsam = 111 then
- activpage = 0
- activsp = 31
- setsamname()
- sendSprite(activsp, #getforcus)
- exit
- end if
- activsp = activsp + 1
- if activsp > 48 then
- activsp = 31
- activpage = activpage + 1
- setsamname()
- end if
- end if
- end case
- sendSprite(activsp, #getforcus)
- RETURN:
- if nowrate = 0 then
- sendSprite(10, #action)
- else
- sendSprite(9, #action)
- end if
- "":
- sendSprite(8, #action)
- "":
- sendSprite(11, #action)
- "":
- sendSprite(7, #action)
- "":
- sendSprite(12, #action)
- "L":
- if mode = 3 then
- exit
- end if
- if member(1, "Sam").loop = 1 then
- member(1, "Sam").loop = 0
- set the member of sprite 13 to "Loop-Up"
- else
- member(1, "Sam").loop = 1
- set the member of sprite 13 to "Loop-Down"
- end if
- updateStage()
- "Z":
- sendSprite(15, #action)
- "S, C":
- sendSprite(19, #action)
- "Q":
- sendSprite(18, #action)
- end case
- end
-