home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 November / WPCNOV96.ISO / reswnov.dxr / 00012_RESEWordSwitch.ls < prev    next >
Encoding:
Text File  |  1996-09-17  |  7.3 KB  |  206 lines

  1. on RESEWordSwitch
  2.   global RESESwitch, ESprite, RESButtonCount, browserID, GTSWIN95, RESHiLightList
  3.   if RESESwitch = 0 then
  4.     repeat with t = 1 to 20
  5.       if the castNum of sprite ESprite = 55 then
  6.         set the castNum of sprite ESprite to 56
  7.       else
  8.         set the castNum of sprite ESprite to 55
  9.       end if
  10.       updateStage()
  11.     end repeat
  12.     set RESESwitch to 1
  13.     set the castNum of sprite ESprite to 56
  14.     repeat with t = 1 to 5
  15.       set the castNum of sprite ESprite to the castNum of sprite ESprite + 1
  16.       updateStage()
  17.     end repeat
  18.     set the locH of sprite 7 to the locH of sprite ESprite
  19.     set the locV of sprite 7 to the locV of sprite ESprite
  20.     updateStage()
  21.     set the locH of sprite 5 to the locH of sprite ESprite
  22.     set the locV of sprite 5 to the locV of sprite ESprite
  23.     updateStage()
  24.     set the locH of sprite 6 to the locH of sprite ESprite
  25.     set the locV of sprite 6 to the locV of sprite ESprite
  26.     updateStage()
  27.     set the locH of sprite 8 to 100
  28.     set the locV of sprite 8 to 100
  29.     startTimer()
  30.     repeat while the timer < 30
  31.     end repeat
  32.     updateStage()
  33.     repeat with t = 1 to count(RESHiLightList)
  34.       set the locH of sprite getAt(getAt(RESHiLightList, t), 1) to 450
  35.       set the locV of sprite getAt(getAt(RESHiLightList, t), 1) to 400
  36.       updateStage()
  37.     end repeat
  38.   end if
  39.   if RESESwitch = 1 then
  40.     set RESButtonCount to 1 + RESButtonCount
  41.     if RESButtonCount = 6 then
  42.       set RESButtonCount to 0
  43.       if the castNum of sprite 4 = 65 then
  44.         set the castNum of sprite 4 to 66
  45.         set the locH of sprite 35 to 2000
  46.         set the castNum of sprite 41 to 32
  47.       else
  48.         set the castNum of sprite 41 to 86
  49.         set the castNum of sprite 4 to 65
  50.         set the castNum of sprite 35 to 87
  51.         set the locH of sprite 35 to 200
  52.       end if
  53.       updateStage()
  54.     end if
  55.     repeat with t = 1 to count(RESHiLightList)
  56.       set FlashOrNot to getAt(getAt(RESHiLightList, t), 2)
  57.       if FlashOrNot = 3 then
  58.         set the locH of sprite 34 to getAt(getAt(RESHiLightList, t), 3)
  59.         set the locV of sprite 34 to getAt(getAt(RESHiLightList, t), 4)
  60.         setAt(getAt(RESHiLightList, t), 2, FlashOrNot + 1)
  61.         next repeat
  62.       end if
  63.       if FlashOrNot = 6 then
  64.         set the locH of sprite 34 to 2000
  65.         setAt(getAt(RESHiLightList, t), 2, 0)
  66.         next repeat
  67.       end if
  68.       setAt(getAt(RESHiLightList, t), 2, FlashOrNot + 1)
  69.     end repeat
  70.     repeat with t = 1 to count(RESHiLightList)
  71.       if rollOver(getAt(getAt(RESHiLightList, t), 1)) then
  72.         set the locH of sprite 34 to getAt(getAt(RESHiLightList, t), 3)
  73.         set the locV of sprite 34 to getAt(getAt(RESHiLightList, t), 4)
  74.         updateStage()
  75.         repeat while rollOver(getAt(getAt(RESHiLightList, t), 1))
  76.           if the mouseDown then
  77.             open(the pathName & "AOLWYSE.EXE")
  78.           end if
  79.         end repeat
  80.       end if
  81.     end repeat
  82.     if (the mouseH < 455) and (the mouseH > 237) and (the mouseV < 376) and (the mouseV > 191) and not rollOver(48) then
  83.       if the mouseDown then
  84.         if the machineType < 200 then
  85.           set the castNum of sprite 36 to 71
  86.           set the locH of sprite 36 to 235
  87.           set the locV of sprite 36 to 232
  88.           set RESNETUP to 0
  89.           updateStage()
  90.           repeat while 1
  91.             if RESNETUP = 1 then
  92.               if word the mouseWord of field 71 = "YES" then
  93.                 set RESThisword to the mouseWord
  94.                 set the foreColor of word RESThisword of field 71 to 164
  95.                 repeat while word the mouseWord of field 71 = "YES"
  96.                   if the mouseDown then
  97.                     set RESYesOrCancel to 1
  98.                     exit repeat
  99.                   end if
  100.                 end repeat
  101.                 set the foreColor of word RESThisword of field 71 to 255
  102.               end if
  103.               if word the mouseWord of field 71 = "NO" then
  104.                 set RESThisword to the mouseWord
  105.                 set the foreColor of word RESThisword of field 71 to 164
  106.                 repeat while word the mouseWord of field 71 = "NO"
  107.                   if the mouseDown then
  108.                     set RESYesOrCancel to 2
  109.                     exit repeat
  110.                     updateStage()
  111.                   end if
  112.                 end repeat
  113.                 set the foreColor of word RESThisword of field 71 to 255
  114.               end if
  115.               if RESYesOrCancel > 0 then
  116.                 exit repeat
  117.               else
  118.                 if (the mouseCast <> 71) and the mouseDown then
  119.                   beep()
  120.                 end if
  121.               end if
  122.               next repeat
  123.             end if
  124.             if the mouseUp then
  125.               set RESNETUP to 1
  126.             end if
  127.           end repeat
  128.           set RESNETUP to 0
  129.           if RESYesOrCancel = 2 then
  130.             set the locH of sprite 36 to 2000
  131.             updateStage()
  132.             repeat while the mouseDown
  133.             end repeat
  134.           else
  135.             set the castNum of sprite 36 to 69
  136.             set the locH of sprite 36 to 235
  137.             set the locV of sprite 36 to 261
  138.             updateStage()
  139.             repeat while the mouseDown
  140.             end repeat
  141.           end if
  142.         else
  143.           set the castNum of sprite 36 to 71
  144.           set the locH of sprite 36 to 235
  145.           set the locV of sprite 36 to 232
  146.           set RESNETUP to 0
  147.           updateStage()
  148.           repeat while 1
  149.             if RESNETUP = 1 then
  150.               if word the mouseWord of field 71 = "YES" then
  151.                 set RESThisword to the mouseWord
  152.                 set the foreColor of word RESThisword of field 71 to 164
  153.                 repeat while word the mouseWord of field 71 = "YES"
  154.                   if the mouseDown then
  155.                     set RESYesOrCancel to 1
  156.                     exit repeat
  157.                   end if
  158.                 end repeat
  159.                 set the foreColor of word RESThisword of field 71 to 255
  160.               end if
  161.               if word the mouseWord of field 71 = "NO" then
  162.                 set RESThisword to the mouseWord
  163.                 set the foreColor of word RESThisword of field 71 to 164
  164.                 repeat while word the mouseWord of field 71 = "NO"
  165.                   if the mouseDown then
  166.                     set RESYesOrCancel to 2
  167.                     exit repeat
  168.                     updateStage()
  169.                   end if
  170.                 end repeat
  171.                 set the foreColor of word RESThisword of field 71 to 255
  172.               end if
  173.               if RESYesOrCancel > 0 then
  174.                 exit repeat
  175.               else
  176.                 if (the mouseCast <> 71) and the mouseDown then
  177.                   beep()
  178.                 end if
  179.               end if
  180.               next repeat
  181.             end if
  182.             if the mouseUp then
  183.               set RESNETUP to 1
  184.             end if
  185.           end repeat
  186.           set RESNETUP to 0
  187.           if RESYesOrCancel = 2 then
  188.             set the locH of sprite 36 to 2000
  189.             updateStage()
  190.             repeat while the mouseDown
  191.             end repeat
  192.           else
  193.             set the castNum of sprite 36 to 69
  194.             set the locH of sprite 36 to 235
  195.             set the locV of sprite 36 to 261
  196.             updateStage()
  197.             repeat while the mouseDown
  198.             end repeat
  199.             StartBrowser("HTML/res/resource.htm")
  200.           end if
  201.         end if
  202.       end if
  203.     end if
  204.   end if
  205. end
  206.