home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gSpkrSprite, gNoteArray, gLightArray, gCurrentNote, gSliderSprite, gnNotes, gNoteNumber
- repeat while the timer < ((gCurrentNote * 67.5) - 8)
- if the castNum of sprite gSpkrSprite = the number of cast "Spkr" then
- set the castNum of sprite gSpkrSprite to the number of cast "Spkr1"
- else
- if the castNum of sprite gSpkrSprite = the number of cast "Spkr1" then
- set the castNum of sprite gSpkrSprite to the number of cast "Spkr2"
- else
- if the castNum of sprite gSpkrSprite = the number of cast "Spkr2" then
- set the castNum of sprite gSpkrSprite to the number of cast "Spkr"
- end if
- end if
- end if
- updateStage()
- end repeat
- set gCurrentNote to gCurrentNote + 1
- set gNoteNumber to gNoteNumber + 1
- if gNoteNumber <= gnNotes then
- go(the frame - 1)
- else
- puppetSprite(gSpkrSprite, 0)
- puppetSprite(gSliderSprite, 0)
- puppetSound(0)
- sound stop 2
- end if
- end
-