home *** CD-ROM | disk | FTP | other *** search
/ PC Direct 1995 September / PCD0995.ISO / files / vision.dir / 00191.ls < prev    next >
Encoding:
Text File  |  1995-01-24  |  1.1 KB  |  32 lines

  1. global cAudioLevel, gLastSprite, gPTimerSet, gPresentationTime, gRedSet, gPresentationLight, gYellowSet, gLightColor, gSoundlevel
  2.  
  3. on startMovie
  4.   set gPresentationLight to 48
  5.   set cAudioLevel to 46
  6.   puppetSprite(cAudioLevel, 1)
  7.   set the castNum of sprite cAudioLevel to the number of cast ("sound level" && gSoundlevel)
  8.   preLoadCast(231, 237)
  9.   set gLastSprite to 0
  10.   if gPTimerSet then
  11.     puppetSprite(gPresentationLight, 1)
  12.     set the castNum of sprite gPresentationLight to the number of cast gLightColor
  13.   end if
  14.   updateStage()
  15. end
  16.  
  17. on enterFrame
  18.   if gPTimerSet then
  19.     if (the timer > (gPresentationTime * 3600)) and not gRedSet then
  20.       set gLightColor to "Red timer light lit"
  21.       set the castNum of sprite gPresentationLight to the number of cast gLightColor
  22.       set gRedSet to 1
  23.       exit
  24.     end if
  25.     if (the timer > ((gPresentationTime * 3600) - 7200)) and not gYellowSet then
  26.       set gLightColor to "Yellow timer light lit"
  27.       set the castNum of sprite gPresentationLight to the number of cast gLightColor
  28.       set gYellowSet to 1
  29.     end if
  30.   end if
  31. end
  32.