home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacUser Mac Bin 36
/
MACUSER-MACBIN36-1996-11.ISO.7z
/
MACUSER-MACBIN36-1996-11.ISO
/
MACBIN
/
inbox9611
/
00017_Script_17
< prev
next >
Wrap
Text File
|
1996-09-23
|
600b
|
20 lines
--
on sliderVolumeH
global base,L,R,HSlider,mouseP,DefV
puppetSprite clickOn(), TRUE
repeat while stillDown()
if mouseH() >= L and mouseH() <= R then set the locH of sprite clickOn() =mouseH()
else if mouseH() > R then set the locH of sprite clickOn() = R
else set the locH of sprite clickOn() = L
upDateStage
end repeat
put (integer(((mouseH()-L)+10)/20))*20 into snapP
if snapP < L then put 0 into snapP
else if snapP > R-L then put R-L into snapP
put snapP+L into mouseP
set the locH of sprite HSlider= mouseP
put snapP/20 into DefV