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

  1. on popupcode
  2.   global gFromFrame, gOldLine, gLowlightColor, languagechosen
  3.   cursor(4)
  4.   set the member of sprite 47 to member "CCMBanner" of castLib languagechosen
  5.   set the ink of sprite 47 to 36
  6.   set the locH of sprite 47 to 6
  7.   set the locV of sprite 47 to 456
  8.   updateStage()
  9.   set the blend of sprite 44 to 25
  10.   set the visible of sprite 40 to 0
  11.   set the visible of sprite 48 to 0
  12.   updateStage()
  13.   ContentsStop()
  14. end
  15.  
  16. on setanimation
  17.   global framecount, imagenumber
  18.   set framecount to random(3) * 30
  19.   set imagenumber to random(4)
  20.   set the visible of sprite 21 to 0
  21.   set the visible of sprite 22 to 0
  22.   set the visible of sprite 23 to 0
  23.   set the visible of sprite 24 to 0
  24.   set the visible of sprite (20 + imagenumber) to 1
  25.   go(the frame + 1)
  26. end
  27.  
  28. on checkrollover frompos, topos
  29.   global currentrollover
  30.   set oldrollover to currentrollover
  31.   repeat with i = frompos to topos
  32.     if rollOver(i + 23) then
  33.       set currentrollover to i
  34.       exit repeat
  35.     end if
  36.   end repeat
  37.   if currentrollover <> oldrollover then
  38.     set the visible of sprite currentrollover to 1
  39.     set the visible of sprite oldrollover to 0
  40.     updateStage()
  41.   else
  42.     if not rollOver(currentrollover) then
  43.       set the visible of sprite oldrollover to 0
  44.     end if
  45.   end if
  46. end
  47.  
  48. on menurollover
  49.   if rollOver(48) then
  50.     set tempmouseline to the mouseLine
  51.     if tempmouseline <> 20 then
  52.       set the locV of sprite 47 to 23 + (tempmouseline * 17)
  53.     end if
  54.   end if
  55. end
  56.  
  57. on myNoEscape
  58.   if the keyCode = 53 then
  59.     dontPassEvent()
  60.     updateStage()
  61.     go("quitting")
  62.   end if
  63. end
  64.  
  65. on startMovie
  66.   global gFromFrame, gHighlightColor, gLowlightColor, gOldLine, currentSection, languagechosen, colorcount, oldrollover
  67.   set the exitLock to 1
  68.   set the keyDownScript to "myNoEscape"
  69.   set oldrollover to 0
  70.   set the name of castLib "English" to languagechosen
  71.   set the fileName of castLib languagechosen to the pathName & languagechosen & ".cst"
  72.   set gHighlightColor to 97
  73.   set gLowlightColor to 8
  74.   set currentSection to 2
  75.   set the visible of sprite 40 to 0
  76.   set the visible of sprite 48 to 0
  77. end
  78.  
  79. on setup
  80.   global gFromFrame, gHighlightColor, gLowlightColor, gOldLine, currentSection, languagechosen, colorcount
  81.   puppetSprite(41, 1)
  82.   puppetSprite(42, 1)
  83.   puppetSprite(43, 1)
  84.   puppetSprite(44, 1)
  85.   puppetSprite(45, 1)
  86.   puppetSprite(46, 1)
  87.   puppetSprite(48, 1)
  88.   puppetSprite(47, 1)
  89.   set the member of sprite 44 to member "popupPrevious" of castLib languagechosen
  90.   set the ink of sprite 44 to 36
  91.   set the locH of sprite 44 to 239
  92.   set the locV of sprite 44 to 412
  93.   set the member of sprite 45 to member "popupcontents" of castLib languagechosen
  94.   set the ink of sprite 45 to 36
  95.   set the locH of sprite 45 to 350
  96.   set the locV of sprite 45 to 412
  97.   set the member of sprite 46 to member "popupcover" of castLib languagechosen
  98.   set the ink of sprite 46 to 36
  99.   set the locH of sprite 46 to 462
  100.   set the locV of sprite 46 to 412
  101.   set the member of sprite 48 to member "popuptext" of castLib languagechosen
  102.   set the ink of sprite 48 to 36
  103.   set the locH of sprite 48 to 261
  104.   set the locV of sprite 48 to 39
  105.   set the member of sprite 47 to member "CCMBanner" of castLib languagechosen
  106.   set the ink of sprite 47 to 36
  107.   set the locH of sprite 47 to 6
  108.   set the locV of sprite 47 to 456
  109.   if languagechosen = "greek" then
  110.     set fontused to "arial greek"
  111.   else
  112.     set fontused to "arial"
  113.   end if
  114.   set the textFont of member "CCMDescript" to fontused
  115.   set the textFont of member "CCMText1" to fontused
  116.   set the textFont of member "CCMText2" to fontused
  117.   set the textFont of member "CCMText3" to fontused
  118.   set the textFont of member "CCMText4" to fontused
  119. end
  120.  
  121. on stopMovie
  122.   global gLastMovie, gLastFrame
  123.   set gLastMovie to the movieName
  124.   set gLastFrame to the frame
  125.   puppetSprite(41, 0)
  126.   puppetSprite(42, 0)
  127.   puppetSprite(43, 0)
  128.   puppetSprite(44, 0)
  129.   puppetSprite(45, 0)
  130.   puppetSprite(46, 0)
  131.   puppetSprite(48, 0)
  132. end
  133.  
  134. on ContentsStart
  135. end
  136.  
  137. on ContentsStop
  138.   cursor(0)
  139. end
  140.