home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gFirstNum, gReturn, gGrooveSel, gOnSynth
- handlesprite()
- writeFieldGroove()
- if gOnSynth then
- set the visible of sprite 52 to 1
- set the visible of sprite 51 to 0
- else
- if windowPresent("synth") then
- set the visible of sprite 51 to 1
- set the visible of sprite 52 to 0
- end if
- end if
- if gFirstNum <> 0 then
- repeat with i = 1 to 8
- if line integer(gFirstNum) + i - 1 of field "grooveMem" <> EMPTY then
- set mNum to "g" & integer(gFirstNum) + i - 1
- set the memberNum of sprite (29 + i) to the number of member mNum
- updateStage()
- next repeat
- end if
- exit repeat
- end repeat
- if gGrooveSel then
- set firstNum to integer(chars(the name of member the memberNum of sprite 30, 2, length(the name of member the memberNum of sprite 30)))
- set lastNum to integer(chars(the name of member the memberNum of sprite (28 + i), 2, length(the name of member the memberNum of sprite (28 + i))))
- if (gGrooveSel >= firstNum) and (gGrooveSel <= lastNum) then
- puppetSprite(12, 1)
- set nS to "h" & gGrooveSel
- set the memberNum of sprite 12 to the number of member nS
- set the loc of sprite 12 to the loc of sprite (29 + (gGrooveSel - firstNum + 1))
- end if
- end if
- end if
- set gReturn to EMPTY
- end
-