home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1997 August / Personal_Computer_World_Aug_97.iso / dxrs / hanpcw08.dxr / 00023_HANICONSwitch.ls < prev    next >
Encoding:
Text File  |  1997-05-16  |  6.3 KB  |  187 lines

  1. on HANICONSwitch
  2.   global HANIconsprite, HANIconTextsprite, HANCOuntIcon, DriveLtr, ACROPATH
  3.   if HANCOuntIcon = 3 then
  4.     set HANCOuntIcon to 0
  5.     if the castNum of sprite HANIconsprite = 63 then
  6.       set the castNum of sprite HANIconsprite to 49
  7.     else
  8.       set the castNum of sprite HANIconsprite to the castNum of sprite HANIconsprite + 1
  9.     end if
  10.     updateStage()
  11.   else
  12.     set HANCOuntIcon to 1 + HANCOuntIcon
  13.   end if
  14.   if rollOver(HANIconsprite) and the mouseDown then
  15.     if the machineType < 200 then
  16.       set the castNum of sprite 36 to 67
  17.       set the loc of sprite 36 to point(125, 230)
  18.       set ARTNETUP to 0
  19.       updateStage()
  20.       repeat while 1
  21.         if ARTNETUP = 1 then
  22.           set Whichcolour to the foreColor of word 1 of field 67
  23.           if word the mouseWord of field 67 = "Quit" then
  24.             set ARTThisword to the mouseWord
  25.             set the foreColor of word ARTThisword of field 67 to 0
  26.             repeat while word the mouseWord of field 67 = "QUIT"
  27.               if the mouseDown then
  28.                 set ARTYesOrCancel to 1
  29.                 exit repeat
  30.               end if
  31.             end repeat
  32.             set the foreColor of word ARTThisword of field 67 to Whichcolour
  33.           end if
  34.           if word the mouseWord of field 67 = "CANCEL" then
  35.             set ARTThisword to the mouseWord
  36.             set the foreColor of word ARTThisword of field 67 to 0
  37.             repeat while word the mouseWord of field 67 = "CANCEL"
  38.               if the mouseDown then
  39.                 set ARTYesOrCancel to 2
  40.                 exit repeat
  41.                 updateStage()
  42.               end if
  43.             end repeat
  44.             set the foreColor of word ARTThisword of field 67 to Whichcolour
  45.           end if
  46.           if ARTYesOrCancel > 0 then
  47.             exit repeat
  48.           else
  49.             if (the mouseCast <> 67) 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 ARTNETUP to 1
  57.         end if
  58.       end repeat
  59.       set ARTNETUP to 0
  60.       if ARTYesOrCancel = 2 then
  61.         set the locH of sprite 36 to 2000
  62.         updateStage()
  63.         repeat while the mouseDown
  64.         end repeat
  65.       else
  66.         quit()
  67.       end if
  68.     else
  69.       updateStage()
  70.       if (ACROPATH = EMPTY) or (ACROPATH = 0) then
  71.         set the castNum of sprite 36 to 67
  72.         set the loc of sprite 36 to point(125, 230)
  73.         set ARTNETUP to 0
  74.         updateStage()
  75.         repeat while 1
  76.           if ARTNETUP = 1 then
  77.             set Whichcolour to the foreColor of word 1 of field 67
  78.             if word the mouseWord of field 67 = "Quit" then
  79.               set ARTThisword to the mouseWord
  80.               set the foreColor of word ARTThisword of field 67 to 0
  81.               repeat while word the mouseWord of field 67 = "QUIT"
  82.                 if the mouseDown then
  83.                   set ARTYesOrCancel to 1
  84.                   exit repeat
  85.                 end if
  86.               end repeat
  87.               set the foreColor of word ARTThisword of field 67 to Whichcolour
  88.             end if
  89.             if word the mouseWord of field 67 = "CANCEL" then
  90.               set ARTThisword to the mouseWord
  91.               set the foreColor of word ARTThisword of field 67 to 0
  92.               repeat while word the mouseWord of field 67 = "CANCEL"
  93.                 if the mouseDown then
  94.                   set ARTYesOrCancel to 2
  95.                   exit repeat
  96.                   updateStage()
  97.                 end if
  98.               end repeat
  99.               set the foreColor of word ARTThisword of field 67 to Whichcolour
  100.             end if
  101.             if ARTYesOrCancel > 0 then
  102.               exit repeat
  103.             else
  104.               if (the mouseCast <> 56) and the mouseDown then
  105.                 beep()
  106.               end if
  107.             end if
  108.             next repeat
  109.           end if
  110.           if the mouseUp then
  111.             set ARTNETUP to 1
  112.           end if
  113.         end repeat
  114.         set ARTNETUP to 0
  115.         if ARTYesOrCancel = 2 then
  116.           set the locH of sprite 36 to 2000
  117.           updateStage()
  118.           repeat while the mouseDown
  119.           end repeat
  120.         else
  121.           quit()
  122.         end if
  123.       else
  124.         set the castNum of sprite 36 to 64
  125.         set the locH of sprite 36 to 361
  126.         set the locV of sprite 36 to 235
  127.         set HANNETUP to 0
  128.         set Whichcolour to the foreColor of word 1 of field 64
  129.         updateStage()
  130.         repeat while 1
  131.           if HANNETUP = 1 then
  132.             if word the mouseWord of field 64 = "YES" then
  133.               set REFThisword to the mouseWord
  134.               set the foreColor of word REFThisword of field 64 to 0
  135.               repeat while word the mouseWord of field 64 = "YES"
  136.                 if the mouseDown then
  137.                   set REFYesOrCancel to 1
  138.                   exit repeat
  139.                 end if
  140.               end repeat
  141.               set the foreColor of word REFThisword of field 64 to Whichcolour
  142.             end if
  143.             if word the mouseWord of field 64 = "NO" then
  144.               set REFThisword to the mouseWord
  145.               set the foreColor of word REFThisword of field 64 to 0
  146.               repeat while word the mouseWord of field 64 = "NO"
  147.                 if the mouseDown then
  148.                   set REFYesOrCancel to 2
  149.                   exit repeat
  150.                   updateStage()
  151.                 end if
  152.               end repeat
  153.               set the foreColor of word REFThisword of field 64 to Whichcolour
  154.             end if
  155.             if REFYesOrCancel > 0 then
  156.               exit repeat
  157.             else
  158.               if (the mouseCast <> 64) and the mouseDown then
  159.                 beep()
  160.               end if
  161.             end if
  162.             next repeat
  163.           end if
  164.           if the mouseUp then
  165.             set HANNETUP to 1
  166.           end if
  167.         end repeat
  168.         set HANNETUP to 0
  169.         if REFYesOrCancel = 2 then
  170.           set the locH of sprite 36 to 2000
  171.           updateStage()
  172.           repeat while the mouseDown
  173.           end repeat
  174.         else
  175.           set the castNum of sprite 36 to 65
  176.           set the locH of sprite 36 to 361
  177.           set the locV of sprite 36 to 264
  178.           updateStage()
  179.           repeat while the mouseDown
  180.           end repeat
  181.           StartBrowserAcrobat("acrofile\pcwpdf\pcwhelp.pdf")
  182.         end if
  183.       end if
  184.     end if
  185.   end if
  186. end
  187.