home *** CD-ROM | disk | FTP | other *** search
/ Pro One: Netcracker Netscape Navigator / ProOne: Netcracker Netscape Navigator.iso / pc / nc / bm / bm_mail1.geo / 00017.ls < prev    next >
Encoding:
Text File  |  1997-03-19  |  1.5 KB  |  72 lines

  1. on ClickScroll spriteNum, castDown, macroName
  2.   set flag to 0
  3.   set SaveCast to the castNum of sprite spriteNum
  4.   set flag to swapScroll(spriteNum, SaveCast, castDown)
  5.   repeat while the stillDown
  6.     set flag to swapScroll(spriteNum, SaveCast, castDown)
  7.     if flag = 1 then
  8.       do(macroName)
  9.     end if
  10.   end repeat
  11. end
  12.  
  13. on swapScroll spriteNum, SaveCast, castDown
  14.   if rollOver(spriteNum) then
  15.     set the castNum of sprite spriteNum to the number of cast castDown
  16.     updateStage()
  17.     return 1
  18.   else
  19.     set the castNum of sprite spriteNum to the number of cast SaveCast
  20.     updateStage()
  21.     return 0
  22.   end if
  23. end
  24.  
  25. on switchButt spriteNum, castDown, macroName
  26.   set flag to 0
  27.   set SaveCast to the castNum of sprite spriteNum
  28.   set flag to swapCast(spriteNum, SaveCast, castDown)
  29.   repeat while the stillDown
  30.     set flag to swapCast(spriteNum, SaveCast, castDown)
  31.   end repeat
  32.   if flag = 1 then
  33.     do(macroName)
  34.   end if
  35. end
  36.  
  37. on swapCast spriteNum, SaveCast, castDown
  38.   if rollOver(spriteNum) then
  39.     set the castNum of sprite spriteNum to the number of cast castDown
  40.     updateStage()
  41.     return 1
  42.   else
  43.     set the castNum of sprite spriteNum to the number of cast SaveCast
  44.     updateStage()
  45.     return 0
  46.   end if
  47. end
  48.  
  49. on handleExit
  50.   tell the stage
  51.     CloseBookMarkWindows()
  52.   end tell
  53. end
  54.  
  55. on handleUP
  56.   Set_StepMeter("decrease")
  57. end
  58.  
  59. on handleDown
  60.   Set_StepMeter("increase")
  61. end
  62.  
  63. on Set_ScreenSubject theNum
  64.   global ScreenSubject
  65.   set ScreenSubject to theNum
  66. end
  67.  
  68. on Get_ScreenSubject
  69.   global ScreenSubject
  70.   return ScreenSubject
  71. end
  72.