home *** CD-ROM | disk | FTP | other *** search
/ AIMEE 1996 Spring / AIMEE3.BIN / pc / aimee3.exe / aimee3.DXR / 00046.ls < prev    next >
Encoding:
Text File  |  1996-03-10  |  702 b   |  23 lines

  1. on mouseDown
  2.   set mousePos to the mouseH
  3.   set offset to mousePos - the locH of sprite 9
  4.   set max to 350
  5.   repeat while the stillDown = 1
  6.     set ButtonPosition to the mouseH - offset
  7.     if ButtonPosition > max then
  8.       set the locH of sprite 9 to ButtonPosition
  9.       if the locH of sprite 9 > 546 then
  10.         set the locH of sprite 9 to 546
  11.       else
  12.         if the locH of sprite 9 < 350 then
  13.           set the locH of sprite 9 to 350
  14.         end if
  15.       end if
  16.     end if
  17.     set max to the locH of sprite 9
  18.     set the height of sprite 5 to (the locH of sprite 9 / 1.25) - 89
  19.     set the width of sprite 5 to the height of sprite 5 * 1.33300000000000018
  20.     updateStage()
  21.   end repeat
  22. end
  23.