home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Clips / SelectSoftPublishing-StockClips-MultimediaClips-WinMac.bin / pc / CATALOG / DA.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.       if the mouseCast = gMainMenuButtonCast then
  30.         exit repeat
  31.       else
  32.         if the mouseCast = gQuitCast then
  33.           exit repeat
  34.         end if
  35.       end if
  36.     end if
  37.     hCheckMusicPlaying()
  38.   end repeat
  39. end
  40.  
  41. on hCheckMusicPlaying
  42.   if soundBusy(1) then
  43.     nothing()
  44.   else
  45.     sound playFile 1, "MUSIC.AIF"
  46.   end if
  47. end
  48.