global gOn, gpag, gPath, gSong, gNumUser, gSync, stateTrackList, virTracklIst, apri
if not (the visible of window "help") then
if gOn then
if inside(the clickLoc, rect(615, 454, 634, 471)) then
repeat while the mouseDown
set the memberNum of sprite 13 to the number of member "Hquit"
set the ink of sprite 13 to 36
set the loc of sprite 13 to point(625, 464)
updateStage()
end repeat
pass()
end if
if inside(the clickLoc, rect(249, 169, 390, 310)) and not inside(the clickLoc, rect(292, 196, 348, 216)) and not inside(the clickLoc, rect(280, 236, 360, 242)) and not inside(the clickLoc, rect(292, 264, 348, 284)) and (virTracklIst <> [-1, -1, -1, -1, -1, -1, -1, -1]) and not gSync then
repeat while the mouseDown
set the memberNum of sprite 13 to the number of member "Hred"
set the ink of sprite 13 to 36
set the loc of sprite 13 to point(320, 240)
updateStage()
end repeat
pass()
end if
if inside(the clickLoc, rect(565, 52, 573, 60)) then
repeat while the mouseDown
set the memberNum of sprite 13 to the number of member "HpreviousPage"
set the ink of sprite 13 to 36
set the loc of sprite 13 to point(569, 57)
updateStage()
end repeat
pass()
end if
if inside(the clickLoc, rect(626, 52, 634, 60)) then
repeat while the mouseDown
set the memberNum of sprite 13 to the number of member "HnextPage"
set the ink of sprite 13 to 36
set the loc of sprite 13 to point(631, 57)
updateStage()
end repeat
pass()
end if
if inside(the clickLoc, rect(102, 150, 108, 159)) and (field "grooveMem" <> EMPTY) then
if (the lineCount of member "grooveMem" > 8) and not ((integer(chars(the name of member the memberNum of sprite 30, 2, length(the name of member the memberNum of sprite 30))) + 7) >= the lineCount of member "grooveMem") then
repeat while the mouseDown
set the memberNum of sprite 13 to the number of member "HnextGroove"
set the ink of sprite 13 to 36
set the loc of sprite 13 to point(106, 155)
updateStage()
end repeat
pass()
end if
end if
if inside(the clickLoc, rect(102, 308, 108, 316)) and (field "grooveMem" <> EMPTY) then
if the name of member the memberNum of sprite 30 <> "g1" then
repeat while the mouseDown
set the memberNum of sprite 13 to the number of member "HpreviousGroove"
set the ink of sprite 13 to 36
set the loc of sprite 13 to point(106, 312)
updateStage()
end repeat
pass()
end if
end if
if inside(the clickLoc, rect(592, 454, 611, 471)) then
repeat while the mouseDown
set the memberNum of sprite 13 to the number of member "Hpref"
set the ink of sprite 13 to 36
set the loc of sprite 13 to point(602, 464)
updateStage()
end repeat
pass()
end if
if inside(the clickLoc, rect(567, 433, 633, 446)) then
repeat while the mouseDown
set the memberNum of sprite 13 to the number of member "HvMix"
set the ink of sprite 13 to 36
set the loc of sprite 13 to point(601, 441)
updateStage()
end repeat
pass()
end if
if inside(the clickLoc, rect(22, 212, 78, 269)) then
if not ((getPos(stateTrackList, "on") = 0) and (getPos(stateTrackList, "solo") = 0)) then
set temp to chars(the name of member the memberNum of sprite 12, 2, length(the name of member the memberNum of sprite 12))
if not integerp(integer(temp)) then
repeat while the mouseDown
set the memberNum of sprite 13 to the number of member "Hmarker"
set the ink of sprite 13 to 36
set the loc of sprite 13 to point(51, 240)
updateStage()
end repeat
end if
end if
pass()
end if
if inside(the clickLoc, rect(35, 155, 81, 197)) then
if (stateTrackList <> ["off", "off", "off", "off", "off", "off", "off", "off"]) and (stateTrackList <> ["mute", "mute", "mute", "mute", "mute", "mute", "mute", "mute"]) then
repeat while the mouseDown
set the memberNum of sprite 13 to the number of member "HsaveGroove"
set the ink of sprite 13 to 36
set the loc of sprite 13 to point(58, 177)
updateStage()
end repeat
end if
pass()
end if
if inside(the clickLoc, rect(35, 283, 81, 325)) then
repeat while the mouseDown
set the memberNum of sprite 13 to the number of member "HloadGroove"
set the ink of sprite 13 to 36
set the loc of sprite 13 to point(58, 305)
updateStage()
end repeat
pass()
end if
if inside(the clickLoc, rect(567, 413, 633, 426)) then
repeat while the mouseDown
set the memberNum of sprite 13 to the number of member "Hseq"
set the ink of sprite 13 to 36
set the loc of sprite 13 to point(601, 422)
updateStage()
end repeat
pass()
end if
if inside(the clickLoc, rect(567, 372, 633, 387)) then
repeat while the mouseDown
set the memberNum of sprite 13 to the number of member "HsongMenu"
set the ink of sprite 13 to 36
set the loc of sprite 13 to point(601, 381)
updateStage()
end repeat
pass()
end if
if inside(the clickLoc, rect(508, 50, 563, 63)) then
if gNumUser < 16 then
repeat while the mouseDown
set the memberNum of sprite 13 to the number of member "HloadUser"
if inside(point(the mouseH, the mouseV), rect(615, 454, 634, 471)) then
openWin("YesNo")
tell window "YesNo"
go("quit")
end tell
pass()
end if
if inside(point(the mouseH, the mouseV), rect(249, 169, 390, 310)) and not inside(point(the mouseH, the mouseV), rect(292, 196, 348, 216)) and not inside(point(the mouseH, the mouseV), rect(280, 236, 360, 242)) and not inside(point(the mouseH, the mouseV), rect(292, 264, 348, 284)) and (virTracklIst <> [-1, -1, -1, -1, -1, -1, -1, -1]) and not gSync then
clickRed()
pass()
end if
if gOn then
if inside(point(the mouseH, the mouseV), rect(102, 150, 108, 159)) then
if (the lineCount of member "grooveMem" > 8) and not ((integer(chars(the name of member the memberNum of sprite 30, 2, length(the name of member the memberNum of sprite 30))) + 7) >= the lineCount of member "grooveMem") then
if gGrooveSel then
puppetSprite(12, 0)
end if
repeat with i = 1 to 8
set the memberNum of sprite (29 + i) to the memberNum of sprite (29 + i) + 1
updateStage()
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 37, 2, length(the name of member the memberNum of sprite 37)))
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
pass()
end if
if inside(the clickLoc, rect(102, 308, 108, 316)) and (field "grooveMem" <> EMPTY) then
if the name of member the memberNum of sprite 30 <> "g1" then
if gGrooveSel then
puppetSprite(12, 0)
end if
repeat with i = 8 down to 1
if chars(the name of member the memberNum of sprite (29 + i), 1, 2) <> "gr" then
set ultimo to integer(chars(the name of member the memberNum of sprite (29 + i), 2, length(the name of member the memberNum of sprite (29 + i))))
exit repeat
end if
end repeat
set j to 0
repeat with k = i + 1 down to 1
set j to j + 1
set nS to "g" & ultimo - j + 1
set the memberNum of sprite (29 + k) to the number of member nS
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 37, 2, length(the name of member the memberNum of sprite 37)))
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
pass()
end if
end if
if inside(point(the mouseH, the mouseV), rect(565, 52, 573, 60)) then
if gpag <> 1 then
scrollByLine(member "fieldAudio", -20)
set gpag to gpag - 1
else
set q to the lineCount of member "fieldAudio" / 20
set r to the lineCount of member "fieldAudio" mod 20