home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 September / WPCSEP96.ISO / hanw08f.dxr / 00021_HANICONSwitch.ls < prev    next >
Encoding:
Text File  |  1996-07-09  |  4.3 KB  |  135 lines

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