home *** CD-ROM | disk | FTP | other *** search
/ PC/CD Review 59 / PCR59.iso / scifi_2d / movies / shared.dir / 01102.ls < prev    next >
Encoding:
Text File  |  1995-06-25  |  523 b   |  28 lines

  1. on mouseDown
  2.   repeat while the mouseDown
  3.     set mouse1 to the mouseH
  4.     if mouse1 < 335 then
  5.       set mouse1 to 335
  6.     else
  7.       if mouse1 > 470 then
  8.         set mouse1 to 470
  9.       end if
  10.     end if
  11.     set the locH of sprite 30 to mouse1
  12.     updateStage()
  13.   end repeat
  14. end
  15.  
  16. on mouseUp
  17.   set mousePos to the mouseH
  18.   set level to integer((mousePos - 335) / 0.52800000000000014)
  19.   if level > 255 then
  20.     set level to 255
  21.   else
  22.     if level < 0 then
  23.       set level to 0
  24.     end if
  25.   end if
  26.   setMusicVol(level)
  27. end
  28.