home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 December / WPCDEC97.ISO / DXRS / HANWDEC.DXR / 00021_HANICONSwitch.ls < prev    next >
Encoding:
Text File  |  1997-10-13  |  5.8 KB  |  173 lines

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