home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 May
/
CHIPCD5_98.iso
/
software
/
testsoft
/
carr
/
IRL.CST
/
00019_Script_s_scrlDown
< prev
next >
Wrap
Text File
|
1998-01-28
|
573b
|
24 lines
on mouseDown
global g_scrltimer,g_bscrstate
set g_scrltimer=the timer
set g_bscrstate=#Down
end
on mouseLeave
global g_bscrstate
set g_bscrstate=#None
end
on mouseUp
global g_bscrstate,g_textmem,g_slspr,g_sliderTop,g_textmem
global g_ListLen,g_ListSize,g_sliderSize
set tmp=the scrollTop of g_textmem
set sctop=tmp
if (tmp+g_ListSize)<(g_ListLen+15) then
set sctop to tmp+15
end if
set tmp=sctop*g_sliderSize/(g_ListLen-g_ListSize-15)
set the locV of sprite g_slspr to tmp+g_sliderTop
set g_bscrstate=#None
end