home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 September / WPCSEP96.ISO / refw08f.dxr / 00013_REFGoToSelection.ls < prev    next >
Encoding:
Text File  |  1996-07-09  |  8.1 KB  |  261 lines

  1. on REFGoToSelection s
  2.   global REFCallApplication, REFAppFilenames, REFActiveSection, REFLastActive, REFAcro
  3.   REFClearSectionSprites()
  4.   if s = 1 then
  5.     REFSetupStage(s)
  6.     REFRunA2ZSection()
  7.   end if
  8.   if s = 2 then
  9.     REFSetupStage(s)
  10.     REFRunAboutSection()
  11.   end if
  12.   if s = 3 then
  13.     REFSetupStage(s)
  14.     set REFAcro to 0
  15.     if the machineType < 200 then
  16.       set the castNum of sprite 36 to 80
  17.       set the locH of sprite 36 to 206
  18.       set the locV of sprite 36 to 173
  19.       set REFNETUP to 0
  20.       updateStage()
  21.       repeat while 1
  22.         if REFNETUP = 1 then
  23.           if word the mouseWord of field 80 = "YES" then
  24.             set REFThisword to the mouseWord
  25.             set the foreColor of word REFThisword of field 80 to 4
  26.             repeat while word the mouseWord of field 80 = "YES"
  27.               if the mouseDown then
  28.                 set REFYesOrCancel to 1
  29.                 exit repeat
  30.               end if
  31.             end repeat
  32.             set the foreColor of word REFThisword of field 80 to 0
  33.           end if
  34.           if word the mouseWord of field 80 = "NO" then
  35.             set REFThisword to the mouseWord
  36.             set the foreColor of word REFThisword of field 80 to 4
  37.             repeat while word the mouseWord of field 80 = "NO"
  38.               if the mouseDown then
  39.                 set REFYesOrCancel to 2
  40.                 exit repeat
  41.                 updateStage()
  42.               end if
  43.             end repeat
  44.             set the foreColor of word REFThisword of field 80 to 0
  45.           end if
  46.           if REFYesOrCancel > 0 then
  47.             exit repeat
  48.           else
  49.             if (the mouseCast <> 80) and the mouseDown then
  50.               beep()
  51.             end if
  52.           end if
  53.           next repeat
  54.         end if
  55.         if the mouseUp then
  56.           set REFNETUP to 1
  57.         end if
  58.       end repeat
  59.       set REFNETUP to 0
  60.       if REFYesOrCancel = 2 then
  61.         set the locH of sprite 36 to 2000
  62.         updateStage()
  63.         repeat while the mouseDown
  64.         end repeat
  65.       else
  66.         set the castNum of sprite 36 to 83
  67.         set the locH of sprite 36 to 206
  68.         set the locV of sprite 36 to 202
  69.         updateStage()
  70.         repeat while the mouseDown
  71.         end repeat
  72.       end if
  73.     else
  74.       set the castNum of sprite 36 to 80
  75.       set the locH of sprite 36 to 206
  76.       set the locV of sprite 36 to 173
  77.       set REFNETUP to 0
  78.       updateStage()
  79.       repeat while 1
  80.         if REFNETUP = 1 then
  81.           if word the mouseWord of field 80 = "YES" then
  82.             set REFThisword to the mouseWord
  83.             set the foreColor of word REFThisword of field 80 to 4
  84.             repeat while word the mouseWord of field 80 = "YES"
  85.               if the mouseDown then
  86.                 set REFYesOrCancel to 1
  87.                 exit repeat
  88.               end if
  89.             end repeat
  90.             set the foreColor of word REFThisword of field 80 to 0
  91.           end if
  92.           if word the mouseWord of field 80 = "NO" then
  93.             set REFThisword to the mouseWord
  94.             set the foreColor of word REFThisword of field 80 to 4
  95.             repeat while word the mouseWord of field 80 = "NO"
  96.               if the mouseDown then
  97.                 set REFYesOrCancel to 2
  98.                 exit repeat
  99.                 updateStage()
  100.               end if
  101.             end repeat
  102.             set the foreColor of word REFThisword of field 80 to 0
  103.           end if
  104.           if REFYesOrCancel > 0 then
  105.             exit repeat
  106.           else
  107.             if (the mouseCast <> 80) and the mouseDown then
  108.               beep()
  109.             end if
  110.           end if
  111.           next repeat
  112.         end if
  113.         if the mouseUp then
  114.           set REFNETUP to 1
  115.         end if
  116.       end repeat
  117.       set REFNETUP to 0
  118.       if REFYesOrCancel = 2 then
  119.         set the locH of sprite 36 to 2000
  120.         updateStage()
  121.         repeat while the mouseDown
  122.         end repeat
  123.       else
  124.         set the castNum of sprite 36 to 83
  125.         set the locH of sprite 36 to 206
  126.         set the locV of sprite 36 to 202
  127.         updateStage()
  128.         repeat while the mouseDown
  129.         end repeat
  130.         StartBrowser(getAt(REFAppFilenames, 1))
  131.       end if
  132.     end if
  133.   end if
  134.   if s = 4 then
  135.     REFSetupStage(s)
  136.     REFAdIdxSection()
  137.   end if
  138.   if s = 5 then
  139.     REFSetupStage(s)
  140.     set REFAcro to 1
  141.     if the machineType < 200 then
  142.       set the castNum of sprite 36 to 79
  143.       set the locH of sprite 36 to 206
  144.       set the locV of sprite 36 to 173
  145.       set REFNETUP to 0
  146.       updateStage()
  147.       repeat while 1
  148.         if REFNETUP = 1 then
  149.           if word the mouseWord of field 79 = "YES" then
  150.             set REFThisword to the mouseWord
  151.             set the foreColor of word REFThisword of field 79 to 4
  152.             repeat while word the mouseWord of field 79 = "YES"
  153.               if the mouseDown then
  154.                 set REFYesOrCancel to 1
  155.                 exit repeat
  156.               end if
  157.             end repeat
  158.             set the foreColor of word REFThisword of field 79 to 0
  159.           end if
  160.           if word the mouseWord of field 79 = "NO" then
  161.             set REFThisword to the mouseWord
  162.             set the foreColor of word REFThisword of field 79 to 4
  163.             repeat while word the mouseWord of field 79 = "NO"
  164.               if the mouseDown then
  165.                 set REFYesOrCancel to 2
  166.                 exit repeat
  167.                 updateStage()
  168.               end if
  169.             end repeat
  170.             set the foreColor of word REFThisword of field 79 to 0
  171.           end if
  172.           if REFYesOrCancel > 0 then
  173.             exit repeat
  174.           else
  175.             if (the mouseCast <> 79) and the mouseDown then
  176.               beep()
  177.             end if
  178.           end if
  179.           next repeat
  180.         end if
  181.         if the mouseUp then
  182.           set REFNETUP to 1
  183.         end if
  184.       end repeat
  185.       set REFNETUP to 0
  186.       if REFYesOrCancel = 2 then
  187.         set the locH of sprite 36 to 2000
  188.         updateStage()
  189.         repeat while the mouseDown
  190.         end repeat
  191.       else
  192.         set the castNum of sprite 36 to 86
  193.         set the locH of sprite 36 to 206
  194.         set the locV of sprite 36 to 202
  195.         updateStage()
  196.         repeat while the mouseDown
  197.         end repeat
  198.       end if
  199.     else
  200.       set the castNum of sprite 36 to 79
  201.       set the locH of sprite 36 to 206
  202.       set the locV of sprite 36 to 173
  203.       set REFNETUP to 0
  204.       updateStage()
  205.       repeat while 1
  206.         if REFNETUP = 1 then
  207.           if word the mouseWord of field 79 = "YES" then
  208.             set REFThisword to the mouseWord
  209.             set the foreColor of word REFThisword of field 79 to 4
  210.             repeat while word the mouseWord of field 79 = "YES"
  211.               if the mouseDown then
  212.                 set REFYesOrCancel to 1
  213.                 exit repeat
  214.               end if
  215.             end repeat
  216.             set the foreColor of word REFThisword of field 79 to 0
  217.           end if
  218.           if word the mouseWord of field 79 = "NO" then
  219.             set REFThisword to the mouseWord
  220.             set the foreColor of word REFThisword of field 79 to 4
  221.             repeat while word the mouseWord of field 79 = "NO"
  222.               if the mouseDown then
  223.                 set REFYesOrCancel to 2
  224.                 exit repeat
  225.                 updateStage()
  226.               end if
  227.             end repeat
  228.             set the foreColor of word REFThisword of field 79 to 0
  229.           end if
  230.           if REFYesOrCancel > 0 then
  231.             exit repeat
  232.           else
  233.             if (the mouseCast <> 79) and the mouseDown then
  234.               beep()
  235.             end if
  236.           end if
  237.           next repeat
  238.         end if
  239.         if the mouseUp then
  240.           set REFNETUP to 1
  241.         end if
  242.       end repeat
  243.       set REFNETUP to 0
  244.       if REFYesOrCancel = 2 then
  245.         set the locH of sprite 36 to 2000
  246.         updateStage()
  247.         repeat while the mouseDown
  248.         end repeat
  249.       else
  250.         set the castNum of sprite 36 to 86
  251.         set the locH of sprite 36 to 206
  252.         set the locV of sprite 36 to 202
  253.         updateStage()
  254.         repeat while the mouseDown
  255.         end repeat
  256.         StartBrowserAcrobat(getAt(REFAppFilenames, 2))
  257.       end if
  258.     end if
  259.   end if
  260. end
  261.