home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 January / WPCJAN97.ISO / refwjan.dxr / 00013_REFGoToSelection.ls < prev    next >
Encoding:
Text File  |  1996-11-07  |  9.2 KB  |  288 lines

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