home *** CD-ROM | disk | FTP | other *** search
/ PC go! 1996 July / Image.iso / mrmore / mrmore.dir / 00024.ls < prev    next >
Encoding:
Text File  |  1996-04-11  |  839 b   |  31 lines

  1. on enterFrame
  2.   set the visible of sprite 21 to 0
  3. end
  4.  
  5. on exitFrame
  6.   global gnFirstSprite, gnLastSprite, gnHilite, glSoundList, gbSpeaker, gsThisFrame, gnMusicSprite, gbPlayTheMusic
  7.   set gnLastSprite to gnFirstSprite
  8.   repeat while the castNum of sprite gnLastSprite <> 0
  9.     set gnLastSprite to gnLastSprite + 1
  10.   end repeat
  11.   set gnLastSprite to gnLastSprite - 1
  12.   repeat with i = gnFirstSprite to gnLastSprite
  13.     set the puppet of sprite i to 1
  14.   end repeat
  15.   set the puppet of sprite gnHilite to 1
  16.   unLoad()
  17.   if gbSpeaker = 1 then
  18.     StopSound(1)
  19.     set gbSpeaker to 0
  20.   end if
  21.   set n to count(glSoundList)
  22.   repeat with i = 1 to n
  23.     if getAt(glSoundList, i) = gsThisFrame then
  24.       exit
  25.     end if
  26.   end repeat
  27.   set gbSpeaker to 1
  28.   append(glSoundList, gsThisFrame)
  29.   SafeSound(1, "mod\" & char 1 to 8 of gsThisFrame)
  30. end
  31.