home *** CD-ROM | disk | FTP | other *** search
/ Computer Music Interactif 7 / cd.iso / pc / PC / Demos / GroovMak / data1.cab / Program_Executable_Files / Media / Synth.dxr / 00174.ls < prev    next >
Encoding:
Text File  |  1999-09-17  |  1.6 KB  |  43 lines

  1. on mouseDown
  2.   global gLastSprite, markerSynthList, folderSynthList
  3.   if (folderSynthList <> []) and not (the visible of window "help") then
  4.     if (the name of member the memberNum of sprite gLastSprite <> string(count(markerSynthList))) and (count(markerSynthList) <> 0) then
  5.       repeat while the mouseDown
  6.         set the memberNum of sprite 66 to the number of member "Hright"
  7.         updateStage()
  8.       end repeat
  9.     end if
  10.   end if
  11. end
  12.  
  13. on mouseUp
  14.   global gLastSynth, gFirstSynth, gLastSprite, gSynthSel, markerSynthList, folderSynthList
  15.   if (folderSynthList <> []) and not (the visible of window "help") then
  16.     if (the name of member the memberNum of sprite gLastSprite <> string(count(markerSynthList))) and (count(markerSynthList) <> 0) then
  17.       set the memberNum of sprite 66 to the number of member "right"
  18.       updateStage()
  19.       set gFirstSynth to gFirstSynth + 1
  20.       set gLastSynth to gLastSynth + 1
  21.       set nS to 67
  22.       repeat with i = gFirstSynth to gLastSynth
  23.         set nS to nS + 1
  24.         set the memberNum of sprite nS to the number of member string(i)
  25.         updateStage()
  26.       end repeat
  27.       if (gSynthSel > gFirstSynth) and (gSynthSel < gLastSynth) then
  28.         set the locH of sprite 74 to the locH of sprite 74 - 12
  29.       else
  30.         if gSynthSel = gFirstSynth then
  31.           set the locH of sprite 74 to the locH of sprite 68 + 1
  32.         else
  33.           if gSynthSel = gLastSynth then
  34.             set the locH of sprite 74 to the locH of sprite 73 + 1
  35.           else
  36.             set the locH of sprite 74 to -20
  37.           end if
  38.         end if
  39.       end if
  40.     end if
  41.   end if
  42. end
  43.