home *** CD-ROM | disk | FTP | other *** search
/ Cocktail Hour / image.iso / COCKTAIL.DIR / SShow_31.ls < prev    next >
Encoding:
Text File  |  1997-03-05  |  632 b   |  21 lines

  1. on mouseDown
  2.   global gAutoMode, gPictureSprite, gElevatorSprite, gScrollBarSprite
  3.   set gAutoMode to 0
  4.   set currCacl to constrainH(gScrollBarSprite, the mouseH)
  5.   if currCacl = the left of sprite gScrollBarSprite then
  6.     set currCacl to currCacl + 1
  7.   end if
  8.   set tempCacl to currCacl
  9.   repeat while the mouseDown
  10.     set tempCacl to constrainH(gScrollBarSprite, the mouseH)
  11.     if tempCacl = the left of sprite gScrollBarSprite then
  12.       set tempCacl to tempCacl + 1
  13.     end if
  14.     set the locH of sprite gElevatorSprite to tempCacl
  15.     updateStage()
  16.   end repeat
  17.   if currCacl <> tempCacl then
  18.     bringUpPict()
  19.   end if
  20. end
  21.