home *** CD-ROM | disk | FTP | other *** search
/ SKIP - The Laundry Guide / LEVER_CD.iso / lever / envmain.dir / 00339_PopupMovieScript.ls < prev    next >
Encoding:
Text File  |  1997-02-21  |  8.1 KB  |  264 lines

  1. on popupcode
  2.   global gFromFrame, gOldLine, gLowlightColor, languagechosen
  3.   cursor(4)
  4.   setbanner(0)
  5.   updateStage()
  6.   set the blend of sprite 44 to 25
  7.   set the visible of sprite 40 to 0
  8.   set the visible of sprite 48 to 0
  9.   ContentsStop()
  10. end
  11.  
  12. on setbanner bannerno
  13.   global languagechosen, lastbanner
  14.   if bannerno = 0 then
  15.     set bannerno to lastbanner
  16.   end if
  17.   set lastbanner to bannerno
  18.   set the member of sprite 47 to member ("envmainbanner" & bannerno) of castLib languagechosen
  19.   set the ink of sprite 47 to 36
  20.   set the locH of sprite 47 to 6
  21.   set the locV of sprite 47 to 456
  22. end
  23.  
  24. on tractor
  25.   global languagechosen
  26.   set the member of sprite 10 to member "envtexttitle5" of castLib languagechosen
  27.   go("tractor")
  28. end
  29.  
  30. on house
  31.   global languagechosen
  32.   set the member of sprite 10 to member "envtexttitle6" of castLib languagechosen
  33.   go("house")
  34. end
  35.  
  36. on sewer
  37.   global languagechosen
  38.   set the member of sprite 10 to member "envtexttitle3" of castLib languagechosen
  39.   go("sewer")
  40. end
  41.  
  42. on water
  43.   global languagechosen
  44.   set the member of sprite 10 to member "envtexttitle4" of castLib languagechosen
  45.   go("water")
  46. end
  47.  
  48. on lorry
  49.   global languagechosen
  50.   set the member of sprite 10 to member "envtexttitle2" of castLib languagechosen
  51.   go("lorry")
  52. end
  53.  
  54. on factory1
  55.   global languagechosen
  56.   set the member of sprite 10 to member "envtexttitle1" of castLib languagechosen
  57.   go("factory")
  58. end
  59.  
  60. on pylon
  61.   global languagechosen
  62.   set the member of sprite 10 to member "envtexttitle7" of castLib languagechosen
  63.   go("pylon")
  64. end
  65.  
  66. on setnavigation number
  67.   global languagechosen
  68.   myNoEscape()
  69.   case number of
  70.     0:
  71.       set the castLibNum of sprite 35 to 0
  72.       set the castLibNum of sprite 36 to 0
  73.       set the castLibNum of sprite 37 to 0
  74.       set the visible of sprite 19 to 0
  75.       set the visible of sprite 29 to 0
  76.       set the visible of sprite 30 to 0
  77.       puppetSprite(31, 0)
  78.       puppetSprite(33, 0)
  79.       puppetSprite(34, 0)
  80.     1:
  81.       set the castLibNum of sprite 36 to 0
  82.       set the castLibNum of sprite 37 to 0
  83.       set the visible of sprite 29 to 0
  84.       set the visible of sprite 30 to 0
  85.       set the member of sprite 35 to member "EnvMainOK" of castLib languagechosen
  86.       set the ink of sprite 35 to 36
  87.       set the locH of sprite 35 to 270
  88.       set the locV of sprite 35 to 414
  89.       set the blend of sprite 19 to 25
  90.       set the visible of sprite 19 to 1
  91.     2:
  92.       set the visible of sprite 29 to 0
  93.       set the castLibNum of sprite 37 to 0
  94.       set the member of sprite 35 to member "EnvMainOK" of castLib languagechosen
  95.       set the ink of sprite 35 to 36
  96.       set the locH of sprite 35 to 270
  97.       set the locV of sprite 35 to 414
  98.       set the member of sprite 36 to member "EnvMainNext" of castLib languagechosen
  99.       set the ink of sprite 36 to 36
  100.       set the locH of sprite 36 to 385
  101.       set the locV of sprite 36 to 414
  102.       set the blend of sprite 19 to 25
  103.       set the visible of sprite 19 to 1
  104.       set the blend of sprite 30 to 25
  105.       set the visible of sprite 30 to 1
  106.     3:
  107.       set the castLibNum of sprite 36 to 0
  108.       set the visible of sprite 30 to 0
  109.       set the member of sprite 35 to member "EnvMainOK" of castLib languagechosen
  110.       set the ink of sprite 35 to 36
  111.       set the locH of sprite 35 to 270
  112.       set the locV of sprite 35 to 414
  113.       set the member of sprite 37 to member "EnvMainPrevious" of castLib languagechosen
  114.       set the ink of sprite 37 to 36
  115.       set the locH of sprite 37 to 160
  116.       set the locV of sprite 37 to 414
  117.       set the blend of sprite 37 to 25
  118.       set the blend of sprite 19 to 25
  119.       set the visible of sprite 19 to 1
  120.       set the blend of sprite 29 to 25
  121.       set the visible of sprite 29 to 1
  122.     4:
  123.       set the member of sprite 35 to member "EnvMainOK" of castLib languagechosen
  124.       set the ink of sprite 35 to 36
  125.       set the locH of sprite 35 to 270
  126.       set the locV of sprite 35 to 414
  127.       set the member of sprite 36 to member "EnvMainNext" of castLib languagechosen
  128.       set the ink of sprite 36 to 36
  129.       set the locH of sprite 36 to 385
  130.       set the locV of sprite 36 to 414
  131.       set the member of sprite 37 to member "EnvMainPrevious" of castLib languagechosen
  132.       set the ink of sprite 37 to 36
  133.       set the locH of sprite 37 to 160
  134.       set the locV of sprite 37 to 414
  135.       set the blend of sprite 19 to 25
  136.       set the visible of sprite 19 to 1
  137.       set the blend of sprite 29 to 25
  138.       set the visible of sprite 29 to 1
  139.       set the blend of sprite 30 to 25
  140.       set the visible of sprite 30 to 1
  141.       puppetSprite(31, 0)
  142.       puppetSprite(33, 0)
  143.       puppetSprite(34, 0)
  144.   end case
  145.   cursor(0)
  146. end
  147.  
  148. on myNoEscape
  149.   if the keyCode = 53 then
  150.     dontPassEvent()
  151.     updateStage()
  152.     go("quitting")
  153.   end if
  154. end
  155.  
  156. on startMovie
  157.   global gFromFrame, gHighlightColor, gLowlightColor, gOldLine, currentSection, languagechosen, colorcount
  158.   set the exitLock to 1
  159.   set the keyDownScript to "myNoEscape"
  160.   sound stop 1
  161.   sound stop 2
  162.   set the name of castLib "English" to languagechosen
  163.   set the fileName of castLib languagechosen to the pathName & languagechosen & ".cst"
  164.   puppetSound(1, "birds")
  165.   set currentSection to 14
  166.   set the visible of sprite 40 to 0
  167.   set the visible of sprite 48 to 0
  168. end
  169.  
  170. on setup
  171.   global gFromFrame, gHighlightColor, gLowlightColor, gOldLine, currentSection, languagechosen, colorcount
  172.   puppetSprite(47, 1)
  173.   puppetSprite(41, 1)
  174.   puppetSprite(42, 1)
  175.   puppetSprite(43, 1)
  176.   puppetSprite(44, 1)
  177.   puppetSprite(45, 1)
  178.   puppetSprite(46, 1)
  179.   puppetSprite(48, 1)
  180.   set the member of sprite 44 to member "popupPrevious" of castLib languagechosen
  181.   set the ink of sprite 44 to 36
  182.   set the locH of sprite 44 to 159
  183.   set the locV of sprite 44 to 412
  184.   set the member of sprite 45 to member "popupcontents" of castLib languagechosen
  185.   set the ink of sprite 45 to 36
  186.   set the locH of sprite 45 to 270
  187.   set the locV of sprite 45 to 412
  188.   set the member of sprite 46 to member "popupcover" of castLib languagechosen
  189.   set the ink of sprite 46 to 36
  190.   set the locH of sprite 46 to 382
  191.   set the locV of sprite 46 to 412
  192.   set the member of sprite 48 to member "popuptext" of castLib languagechosen
  193.   set the ink of sprite 48 to 36
  194.   set the locH of sprite 48 to 180
  195.   set the locV of sprite 48 to 39
  196.   if languagechosen = "greek" then
  197.     set fontused to "arial greek"
  198.   else
  199.     set fontused to "arial"
  200.   end if
  201.   set the textFont of member "envhousetext3" to fontused
  202.   set the textFont of member "envsewertext1b" to fontused
  203.   set the textFont of member "envsludgetext" to fontused
  204.   set the textFont of member "envhousetext1" to fontused
  205.   set the textFont of member "envhousetext2" to fontused
  206.   set the textFont of member "envwatertext" to fontused
  207.   set the textFont of member "envtext" to fontused
  208.   set the textFont of member "envpylontext1" to fontused
  209.   set the textFont of member "envpylonyaxis" to fontused
  210.   set the textFont of member "envpylontext2" to fontused
  211.   set the textFont of member "envlorrytext" to fontused
  212.   set the textFont of member "envsewertext1" to fontused
  213.   set the textFont of member "envsewertext2" to fontused
  214.   set the textFont of member "envmanutext1" to fontused
  215.   set the textFont of member "envmanutext2" to fontused
  216.   set the textFont of member "envmanutext3" to fontused
  217.   set the textFont of member "envmanutext4" to fontused
  218.   set the textFont of member "envmanutext5" to fontused
  219.   set the textFont of member "envmanutext6" to fontused
  220.   setbanner(1)
  221. end
  222.  
  223. on stopMovie
  224.   global gLastMovie, gLastFrame
  225.   sound stop 1
  226.   sound stop 2
  227.   set gLastMovie to the movieName
  228.   set gLastFrame to the frame
  229.   puppetSprite(41, 0)
  230.   puppetSprite(42, 0)
  231.   puppetSprite(43, 0)
  232.   puppetSprite(44, 0)
  233.   puppetSprite(45, 0)
  234.   puppetSprite(46, 0)
  235.   puppetSprite(48, 0)
  236.   puppetSprite(32, 0)
  237.   puppetSprite(18, 0)
  238. end
  239.  
  240. on ContentsStart
  241. end
  242.  
  243. on ContentsStop
  244.   cursor(0)
  245. end
  246.  
  247. on checkbuttons
  248.   if rollOver(19) then
  249.     set the blend of sprite 19 to 75
  250.   else
  251.     set the blend of sprite 19 to 25
  252.   end if
  253.   if rollOver(29) then
  254.     set the blend of sprite 29 to 75
  255.   else
  256.     set the blend of sprite 29 to 25
  257.   end if
  258.   if rollOver(30) then
  259.     set the blend of sprite 30 to 75
  260.   else
  261.     set the blend of sprite 30 to 25
  262.   end if
  263. end
  264.