home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 February / WPCFEB97.ISO / dxrs / hanwfeb.dxr / 00021_HANICONSwitch.ls < prev    next >
Encoding:
Text File  |  1996-12-05  |  4.3 KB  |  127 lines

  1. on HANICONSwitch
  2.   global HANIconsprite, HANIconTextsprite, HANCOuntIcon, tmpACROobj, ACROPATH, DriveLtr
  3.   if (tmpACROobj <> -43) and (ACROPATH <> EMPTY) then
  4.     if rollOver(HANIconsprite) and the mouseDown then
  5.       if the machineType < 200 then
  6.         set the castNum of sprite 36 to 64
  7.         set the locH of sprite 36 to 361
  8.         set the locV of sprite 36 to 235
  9.         set HANNETUP to 0
  10.         updateStage()
  11.         repeat while 1
  12.           if HANNETUP = 1 then
  13.             if word the mouseWord of field 64 = "YES" then
  14.               set REFThisword to the mouseWord
  15.               set the foreColor of word REFThisword of field 64 to 0
  16.               repeat while word the mouseWord of field 64 = "YES"
  17.                 if the mouseDown then
  18.                   set REFYesOrCancel to 1
  19.                   exit repeat
  20.                 end if
  21.               end repeat
  22.               set the foreColor of word REFThisword of field 64 to 255
  23.             end if
  24.             if word the mouseWord of field 64 = "NO" then
  25.               set REFThisword to the mouseWord
  26.               set the foreColor of word REFThisword of field 64 to 0
  27.               repeat while word the mouseWord of field 64 = "NO"
  28.                 if the mouseDown then
  29.                   set REFYesOrCancel to 2
  30.                   exit repeat
  31.                   updateStage()
  32.                 end if
  33.               end repeat
  34.               set the foreColor of word REFThisword of field 64 to 255
  35.             end if
  36.             if REFYesOrCancel > 0 then
  37.               exit repeat
  38.             else
  39.               if (the mouseCast <> 64) and the mouseDown then
  40.                 beep()
  41.               end if
  42.             end if
  43.             next repeat
  44.           end if
  45.           if the mouseUp then
  46.             set HANNETUP to 1
  47.           end if
  48.         end repeat
  49.         set HANNETUP to 0
  50.         if REFYesOrCancel = 2 then
  51.           set the locH of sprite 36 to 2000
  52.           updateStage()
  53.           repeat while the mouseDown
  54.           end repeat
  55.         else
  56.           set the castNum of sprite 36 to 65
  57.           set the locH of sprite 36 to 361
  58.           set the locV of sprite 36 to 264
  59.           updateStage()
  60.           repeat while the mouseDown
  61.           end repeat
  62.         end if
  63.       else
  64.         set the castNum of sprite 36 to 64
  65.         set the locH of sprite 36 to 361
  66.         set the locV of sprite 36 to 235
  67.         set HANNETUP to 0
  68.         updateStage()
  69.         repeat while 1
  70.           if HANNETUP = 1 then
  71.             if word the mouseWord of field 64 = "YES" then
  72.               set REFThisword to the mouseWord
  73.               set the foreColor of word REFThisword of field 64 to 0
  74.               repeat while word the mouseWord of field 64 = "YES"
  75.                 if the mouseDown then
  76.                   set REFYesOrCancel to 1
  77.                   exit repeat
  78.                 end if
  79.               end repeat
  80.               set the foreColor of word REFThisword of field 64 to 255
  81.             end if
  82.             if word the mouseWord of field 64 = "NO" then
  83.               set REFThisword to the mouseWord
  84.               set the foreColor of word REFThisword of field 64 to 0
  85.               repeat while word the mouseWord of field 64 = "NO"
  86.                 if the mouseDown then
  87.                   set REFYesOrCancel to 2
  88.                   exit repeat
  89.                   updateStage()
  90.                 end if
  91.               end repeat
  92.               set the foreColor of word REFThisword of field 64 to 255
  93.             end if
  94.             if REFYesOrCancel > 0 then
  95.               exit repeat
  96.             else
  97.               if (the mouseCast <> 64) and the mouseDown then
  98.                 beep()
  99.               end if
  100.             end if
  101.             next repeat
  102.           end if
  103.           if the mouseUp then
  104.             set HANNETUP to 1
  105.           end if
  106.         end repeat
  107.         set HANNETUP to 0
  108.         if REFYesOrCancel = 2 then
  109.           set the locH of sprite 36 to 2000
  110.           updateStage()
  111.           repeat while the mouseDown
  112.           end repeat
  113.         else
  114.           set the castNum of sprite 36 to 65
  115.           set the locH of sprite 36 to 361
  116.           set the locV of sprite 36 to 264
  117.           updateStage()
  118.           repeat while the mouseDown
  119.           end repeat
  120.           put DriveLtr & "acrofile\" & "PRNTSHOP.pdf"
  121.           StartBrowserAcrobat("acrofile\" & "PRNTSHOP.pdf")
  122.         end if
  123.       end if
  124.     end if
  125.   end if
  126. end
  127.