home *** CD-ROM | disk | FTP | other *** search
/ SKIP - The Laundry Guide / LEVER_CD.iso / lever / flags.dir / 00002_StartMovie.ls < prev    next >
Encoding:
Text File  |  1997-02-21  |  1.6 KB  |  75 lines

  1. on playsound soundid
  2.   global audiocount
  3.   set audiocount to (120 + random(60)) * 30
  4.   if soundid = 1 then
  5.     puppetSound(2, "coveraudio")
  6.   else
  7.     puppetSound(2, "FlagAudio")
  8.   end if
  9.   cursor(0)
  10. end
  11.  
  12. on setbanner banner
  13.   set the member of sprite 45 to member ("MainBanner" & banner)
  14.   set the ink of sprite 45 to 36
  15.   set the locH of sprite 45 to 10
  16.   set the locV of sprite 45 to 455
  17. end
  18.  
  19. on setswiss
  20. end
  21.  
  22. on setlanguage Language
  23.   global languagechosen, oldlanguagechosen, colorcount
  24.   cursor(4)
  25.   set oldlanguagechosen to languagechosen
  26.   set languagechosen to Language
  27.   puppetSprite(45, 0)
  28.   sound stop 2
  29.   puppetSound(1, "flagresponce")
  30.   go("start flag")
  31. end
  32.  
  33. on startMovie
  34.   global languagechosen, framecount, bannernumber, swisscount, irish, hidetext, obj
  35.   set the exitLock to 1
  36.   set the keyDownScript to "myNoEscape"
  37.   set the centerStage to 1
  38.   cursor(4)
  39.   set irish to 0
  40.   set hidetext to 1
  41.   set swisscount to 0
  42.   set framecount to 0
  43.   set bannernumber to 1
  44.   set languagechosen to "English"
  45.   openXLib("widget")
  46.   set obj to widget(mnew)
  47.   repeat with i = 5 to 17
  48.     set the visible of sprite i to 0
  49.   end repeat
  50.   set the visible of sprite 34 to 0
  51.   set the visible of sprite 35 to 0
  52.   set the visible of sprite 36 to 0
  53.   set the visible of sprite 37 to 0
  54.   set the visible of sprite 38 to 0
  55.   set the visible of sprite 39 to 0
  56.   set the visible of sprite 40 to 0
  57.   set the visible of sprite 33 to 0
  58. end
  59.  
  60. on myNoEscape
  61.   if the keyCode = 53 then
  62.     dontPassEvent()
  63.     updateStage()
  64.     go("quitting")
  65.   end if
  66. end
  67.  
  68. on stopMovie
  69.   global obj
  70.   obj(mdispose)
  71.   closeXLib("widget")
  72.   sound stop 1
  73.   sound stop 2
  74. end
  75.