home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- set the cursor of sprite 45 to [301, 302]
- end
-
- on mouseUp
- global gDrumList, gCurrentDrumBtn, gNewLoopLength, gbanknum, gLastbanknum
- set oldnum to gbanknum
- if gbanknum = 0 then
- set gbanknum to 1
- set the castNum of sprite 45 to 65
- else
- if gbanknum = 1 then
- if gLastbanknum = 0 then
- set gbanknum to 2
- set the castNum of sprite 45 to 66
- else
- set gbanknum to 0
- set the castNum of sprite 45 to 64
- end if
- else
- set gbanknum to 1
- set the castNum of sprite 45 to 65
- end if
- end if
- set gLastbanknum to oldnum
- set newnum to gCurrentDrumBtn + 90 + (gbanknum * 200)
- set gDrumList to the name of cast newnum of castLib 2
- preloadMember(member gDrumList of castLib 2)
- set gNewLoopLength to calculatelooplength(newnum)
- set the cursor of sprite 45 to [303, 304]
- end
-