home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 November / WPCNOV96.ISO / hanwnov.dxr / 00021_HANICONSwitch.ls < prev    next >
Encoding:
Text File  |  1996-09-17  |  4.6 KB  |  137 lines

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