home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacUser Mac Bin 25
/
MACUSER-MACBIN25-1995-12.ISO.7z
/
MACUSER-MACBIN25-1995-12.ISO
/
RockCity6
/
rc6
/
Rock6
/
00017_Script_17
< prev
next >
Wrap
Text File
|
1995-10-24
|
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