home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Encyklopedia Omnia
/
Planeta.iso
/
data
/
m_info.dir
/
00007_Script_TextArrowScroll
< prev
next >
Wrap
Text File
|
2000-10-16
|
782b
|
23 lines
property NStesto, scrollQuantum, scrollDirection
on mouseDown
repeat while the stillDown
if scrollDirection = #Down then
set newVloc = (the locV of sprite NStesto) - scrollQuantum
else
set newVloc = (the locV of sprite NStesto) + scrollQuantum
end if
sendSprite 7, #arrowScroll, newVloc
end repeat
end
on getPropertyDescriptionList
set p_list = [#NStesto: [#comment:"Numero sprite testo:",¼
#format: #integer, #default: 1],¼
#scrollQuantum:[#comment:"ScrollQuantum in pixel:",¼
#format: #integer, #default: 3],¼
#scrollDirection:[#comment:"Direzione di scroll:",¼
#format: #string, #default: #Down, #range: [#Up, #Down]]]
return p_list
end