home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1997 September / Personal_Computer_World_Sep_97.iso / DXRS / HANPCW09.Dxr / 00007_HANACROAlertUser.ls < prev    next >
Encoding:
Text File  |  1997-06-25  |  4.9 KB  |  142 lines

  1. on HANACROAlertUser
  2.   global HANMainAlertSprite, HANTopStripAlertSprite, HANLastButtonAlertSprite, HANAcroAlOption, shortName, DriveLtr, HANAcroAction
  3.   beep()
  4.   case HANAcroAlOption of
  5.     1:
  6.       set the member of sprite HANMainAlertSprite to member "HANALERTthree"
  7.     2:
  8.       set the member of sprite HANMainAlertSprite to member "HANALERTTwo"
  9.   end case
  10.   set the loc of sprite HANMainAlertSprite to point(205, 271)
  11.   set the ink of sprite HANMainAlertSprite to 0
  12.   set the member of sprite HANTopStripAlertSprite to member "HantopStripALERTTwo"
  13.   set the loc of sprite HANTopStripAlertSprite to point(205, 271)
  14.   set the ink of sprite HANTopStripAlertSprite to 0
  15.   repeat with t = 22 to HANLastButtonAlertSprite
  16.     set the member of sprite t to the memberNum of sprite HANTopStripAlertSprite + (t - HANTopStripAlertSprite)
  17.     set the loc of sprite t to point(205, 271)
  18.     set the ink of sprite t to 0
  19.   end repeat
  20.   updateStage()
  21.   repeat while 1
  22.     if not rollOver(HANMainAlertSprite) and the mouseDown then
  23.       beep()
  24.       repeat while the mouseDown
  25.       end repeat
  26.     end if
  27.     case rollOver() of
  28.       HANTopStripAlertSprite:
  29.         if the mouseDown then
  30.           set IntOffsetH to the locH of sprite HANMainAlertSprite - the mouseH
  31.           set IntOffsetV to the locV of sprite HANMainAlertSprite - the mouseV
  32.           repeat while the mouseDown
  33.             set INTMouseH to the mouseH
  34.             set INTMouseV to the mouseV
  35.             repeat with t = HANMainAlertSprite to HANLastButtonAlertSprite
  36.               set the loc of sprite t to point(INTMouseH + IntOffsetH, INTMouseV + IntOffsetV)
  37.             end repeat
  38.             updateStage()
  39.           end repeat
  40.         end if
  41.       22:
  42.         if the mouseDown then
  43.           set the memberNum of sprite 22 to the memberNum of sprite 22 + 3
  44.           updateStage()
  45.           repeat while the mouseDown
  46.             if not rollOver(22) then
  47.               set the memberNum of sprite 22 to the memberNum of sprite 22 - 3
  48.               updateStage()
  49.               exit repeat
  50.             end if
  51.           end repeat
  52.           if rollOver(22) then
  53.             set the memberNum of sprite 22 to the memberNum of sprite 22 - 3
  54.             updateStage()
  55.             repeat with t = HANMainAlertSprite to HANLastButtonAlertSprite
  56.               set the locH of sprite t to 2000
  57.             end repeat
  58.             updateStage()
  59.             set HANAcroAction to 1
  60.             exit repeat
  61.           end if
  62.         end if
  63.       23:
  64.         if the mouseDown then
  65.           set the memberNum of sprite 23 to the memberNum of sprite 23 + 3
  66.           updateStage()
  67.           repeat while the mouseDown
  68.             if not rollOver(23) then
  69.               set the memberNum of sprite 23 to the memberNum of sprite 23 - 3
  70.               updateStage()
  71.               exit repeat
  72.             end if
  73.           end repeat
  74.           if rollOver(23) then
  75.             set the memberNum of sprite 23 to the memberNum of sprite 23 - 3
  76.             updateStage()
  77.             repeat with t = HANMainAlertSprite to HANLastButtonAlertSprite
  78.               set the locH of sprite t to 2000
  79.             end repeat
  80.             updateStage()
  81.             set HANAcroAction to 2
  82.             exit repeat
  83.           end if
  84.         end if
  85.       24:
  86.         if the mouseDown then
  87.           set the memberNum of sprite 24 to the memberNum of sprite 24 + 3
  88.           updateStage()
  89.           repeat while the mouseDown
  90.             if not rollOver(24) then
  91.               set the memberNum of sprite 24 to the memberNum of sprite 24 - 3
  92.               updateStage()
  93.               exit repeat
  94.             end if
  95.           end repeat
  96.           if rollOver(24) then
  97.             set the memberNum of sprite 24 to the memberNum of sprite 24 - 3
  98.             updateStage()
  99.             repeat with t = HANMainAlertSprite to HANLastButtonAlertSprite
  100.               set the locH of sprite t to 2000
  101.             end repeat
  102.             updateStage()
  103.             exit repeat
  104.           end if
  105.         end if
  106.       otherwise:
  107.     end case
  108.   end repeat
  109.   case HANAcroAction of
  110.     1:
  111.       set HANAcroAction to 0
  112.       openXLib("fileio")
  113.       set fioObj to FileIO(mnew, "?read", EMPTY)
  114.       if not objectp(fioObj) then
  115.         return 
  116.       end if
  117.       put fioObj(mFileName)
  118.       set theFile to fioObj(mFileName)
  119.       put theFile into field "HANLocation"
  120.       fioObj(mdispose)
  121.       if the machineType > 200 then
  122.         insureShortFileName(theFile)
  123.         put shortName into field "HANLocation"
  124.         launch(field "HANLocation", DriveLtr & "HANDSON\PCWHELP.PDF")
  125.       else
  126.         put "launch acroread now"
  127.       end if
  128.     2:
  129.       set HANAcroAction to 0
  130.       if the machineType > 200 then
  131.         put the platform
  132.         if the platform = "Windows,16" then
  133.           open(DriveLtr & "Software/Library/Utility/Acro3_16/setup.exe")
  134.         else
  135.           open(DriveLtr & "Software/Library/Utility/Acro3_32/setup.exe")
  136.         end if
  137.       else
  138.         put "install Acroread here"
  139.       end if
  140.   end case
  141. end
  142.