home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Clips / SelectSoftPublishing-StockClips-MultimediaClips-WinMac.bin / pc / CATALOG / DB.DIR / 00002_handlers.ls < prev    next >
Encoding:
Text File  |  2006-01-01  |  1.3 KB  |  48 lines

  1. on hSetupMovie
  2.   global gSlideShowSprite, gCount, gQuitSprite, gQuitCast, gMainMenuButtonSprite, gMainMenuButtonCast
  3.   set gSlideShowSprite to 2
  4.   set the movieRate of sprite gSlideShowSprite to 0
  5.   set the movieTime of sprite gSlideShowSprite to 0
  6.   set gCount to the startTime of sprite gSlideShowSprite / 4
  7.   set gQuitSprite to 48
  8.   set gQuitCast to the castNum of sprite gQuitSprite
  9.   set gMainMenuButtonSprite to 47
  10.   set gMainMenuButtonCast to the castNum of sprite gMainMenuButtonSprite
  11. end
  12.  
  13. on hChangeSlide
  14.   global gCount, gSlideShowSprite, lastSlide
  15.   set gCount to gCount + 1
  16.   if the movieTime of sprite gSlideShowSprite = (the stopTime of sprite gSlideShowSprite - 4) then
  17.     set gCount to (the startTime of sprite gSlideShowSprite + 4) / 4
  18.     set the movieTime of sprite gSlideShowSprite to gCount * 4
  19.   else
  20.     set the movieTime of sprite gSlideShowSprite to gCount * 4
  21.   end if
  22.   updateStage()
  23. end
  24.  
  25. on hWasteTime
  26.   global gMainMenuButtonCast, gQuitCast
  27.   repeat while the timer < 240
  28.     if the mouseUp = 0 then
  29.       hReturnToMainMenu()
  30.     end if
  31.     hCheckMusicPlaying()
  32.   end repeat
  33. end
  34.  
  35. on hCheckMusicPlaying
  36.   if soundBusy(1) then
  37.     nothing()
  38.   else
  39.     sound playFile 1, "MUSIC.AIF"
  40.   end if
  41. end
  42.  
  43. on hReturnToMainMenu
  44.   cursor(4)
  45.   hCheckCurrentFrameLabel()
  46.   hPlayMainMenu()
  47. end
  48.