home *** CD-ROM | disk | FTP | other *** search
- on leaveDemo
- global gAutoMode
- if not (the movieName contains "menu") then
- set gAutoMode to 0
- puppetPalette(the framePalette)
- puppetTransition(6, 2, 16, 0)
- fadeMyVolume(3, 2, 10, 0, 0)
- go(the lastFrame + 1)
- setMyVolume(1, 255, 255)
- setMyVolume(2, 255, 255)
- puppetSound(0)
- updateStage()
- play done
- else
- clearPuppets(1, 24)
- puppetPalette(the framePalette)
- puppetTransition(6, 2, 16, 0)
- fadeMyVolume(3, 2, 10, 0, 0)
- go("MenuTran")
- puppetPalette(0)
- setMyVolume(1, 255, 255)
- setMyVolume(2, 255, 255)
- updateStage()
- go("Menu")
- end if
- puppetSound(0)
- updateStage()
- end
-