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

  1. on checkdial
  2.   global languagechosen
  3.   if rollOver(10) then
  4.     set the visible of sprite 10 to 1
  5.     set the member of sprite 7 to member "CCFCLDialTextWash" of castLib languagechosen
  6.     set the ink of sprite 7 to 36
  7.     set the locH of sprite 7 to 47
  8.     set the locV of sprite 7 to 88
  9.   else
  10.     set the visible of sprite 10 to 0
  11.     if rollOver(11) then
  12.       set the visible of sprite 11 to 1
  13.       set the member of sprite 7 to member "CCFCLDialTextBleach" of castLib languagechosen
  14.       set the ink of sprite 7 to 36
  15.       set the locH of sprite 7 to 47
  16.       set the locV of sprite 7 to 88
  17.     else
  18.       set the visible of sprite 11 to 0
  19.       if rollOver(12) then
  20.         set the visible of sprite 12 to 1
  21.         set the member of sprite 7 to member "CCFCLDialTextDryClean" of castLib languagechosen
  22.         set the ink of sprite 7 to 36
  23.         set the locH of sprite 7 to 47
  24.         set the locV of sprite 7 to 88
  25.       else
  26.         set the visible of sprite 12 to 0
  27.         if rollOver(13) then
  28.           set the visible of sprite 13 to 1
  29.           set the member of sprite 7 to member "CCFCLDialTextDrying" of castLib languagechosen
  30.           set the ink of sprite 7 to 36
  31.           set the locH of sprite 7 to 47
  32.           set the locV of sprite 7 to 88
  33.         else
  34.           set the visible of sprite 13 to 0
  35.           if rollOver(14) then
  36.             set the visible of sprite 14 to 1
  37.             set the member of sprite 7 to member "CCFCLDialTextIroning" of castLib languagechosen
  38.             set the ink of sprite 7 to 36
  39.             set the locH of sprite 7 to 47
  40.             set the locV of sprite 7 to 88
  41.           else
  42.             set the visible of sprite 14 to 0
  43.             set the member of sprite 7 to member "CCFCLDialText"
  44.           end if
  45.         end if
  46.       end if
  47.     end if
  48.   end if
  49. end
  50.  
  51. on evaluate
  52.   global gHighlightColor, gLowlightColor, gOldLine, languagechosen
  53.   if the visible of sprite 48 = 1 then
  54.     if rollOver(48) then
  55.       set tempmouseline to the mouseLine
  56.       if tempmouseline <> 20 then
  57.         set the locV of sprite 47 to 23 + (tempmouseline * 17)
  58.       end if
  59.     end if
  60.   else
  61.     if rollOver(44) then
  62.       set the blend of sprite 41 to 75
  63.     else
  64.       set the blend of sprite 41 to 25
  65.     end if
  66.     if rollOver(45) then
  67.       set the blend of sprite 42 to 75
  68.     else
  69.       set the blend of sprite 42 to 25
  70.     end if
  71.     if rollOver(46) then
  72.       set the blend of sprite 43 to 75
  73.     else
  74.       set the blend of sprite 43 to 25
  75.     end if
  76.   end if
  77. end
  78.  
  79. on myNoEscape
  80.   if the keyCode = 53 then
  81.     dontPassEvent()
  82.     updateStage()
  83.     go("quitting")
  84.   end if
  85. end
  86.  
  87. on startMovie
  88.   global gFromFrame, gHighlightColor, gLowlightColor, gOldLine, currentSection, languagechosen, colorcount
  89.   set the exitLock to 1
  90.   set the keyDownScript to "myNoEscape"
  91.   set the name of castLib "English" to languagechosen
  92.   set the fileName of castLib languagechosen to the pathName & languagechosen & ".cst"
  93.   set gHighlightColor to 27
  94.   set gLowlightColor to 8
  95.   set currentSection to 6
  96.   set the visible of sprite 40 to 0
  97.   set the visible of sprite 48 to 0
  98.   puppetSprite(30, 1)
  99.   set the member of sprite 30 to member "CCFCLTitleExplain" of castLib languagechosen
  100.   set the ink of sprite 30 to 36
  101.   set the locH of sprite 30 to 24
  102.   set the locV of sprite 30 to 308
  103. end
  104.  
  105. on setup
  106.   global gFromFrame, gHighlightColor, gLowlightColor, gOldLine, currentSection, languagechosen, colorcount
  107.   puppetSprite(41, 1)
  108.   puppetSprite(42, 1)
  109.   puppetSprite(43, 1)
  110.   puppetSprite(44, 1)
  111.   puppetSprite(45, 1)
  112.   puppetSprite(46, 1)
  113.   puppetSprite(48, 1)
  114.   set the member of sprite 44 to member "popupPrevious" of castLib languagechosen
  115.   set the ink of sprite 44 to 36
  116.   set the locH of sprite 44 to 159
  117.   set the locV of sprite 44 to 412
  118.   set the member of sprite 45 to member "popupcontents" of castLib languagechosen
  119.   set the ink of sprite 45 to 36
  120.   set the locH of sprite 45 to 270
  121.   set the locV of sprite 45 to 412
  122.   set the member of sprite 46 to member "popupcover" of castLib languagechosen
  123.   set the ink of sprite 46 to 36
  124.   set the locH of sprite 46 to 382
  125.   set the locV of sprite 46 to 412
  126.   set the member of sprite 48 to member "popuptext" of castLib languagechosen
  127.   set the ink of sprite 48 to 36
  128.   set the locH of sprite 48 to 180
  129.   set the locV of sprite 48 to 39
  130.   puppetSprite(47, 1)
  131.   set the member of sprite 47 to member "CCFCLBanner" of castLib languagechosen
  132.   set the ink of sprite 47 to 36
  133.   set the locH of sprite 47 to 6
  134.   set the locV of sprite 47 to 456
  135.   if languagechosen = "greek" then
  136.     set fontused to "arial greek"
  137.   else
  138.     set fontused to "arial"
  139.   end if
  140.   set the textFont of member "CCFCLSectionTitle" to fontused
  141.   set the textFont of member "CCFCLSectionText" to fontused
  142. end
  143.  
  144. on stopMovie
  145.   global gLastMovie, gLastFrame
  146.   set gLastMovie to the movieName
  147.   set gLastFrame to the frame
  148.   puppetSprite(41, 0)
  149.   puppetSprite(42, 0)
  150.   puppetSprite(43, 0)
  151.   puppetSprite(44, 0)
  152.   puppetSprite(45, 0)
  153.   puppetSprite(46, 0)
  154.   puppetSprite(48, 0)
  155.   sound stop 1
  156.   sound stop 2
  157. end
  158.  
  159. on ContentsStart
  160. end
  161.  
  162. on ContentsStop
  163.   cursor(0)
  164. end
  165.