# \[FMX\] scrolling

**URL:** https://forum.kirupa.com/t/fmx-scrolling/93971
**Category:** Uncategorized
**Created:** [November 6, 2003, 10:20pm UTC](https://forum.kirupa.com/t/fmx-scrolling/93971 "2003-11-06T22:20:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Maizoon](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@Maizoon](https://forum.kirupa.com/u/Maizoon)
#### Post date: [November 6, 2003, 10:20pm UTC](https://forum.kirupa.com/t/fmx-scrolling/93971/1 "2003-11-06T22:20:03Z")

</div>

Hello,

I have the following script on a button:  
[AS]  
on (press, release, keyPress “\<Down\>”) {  
currentScroll = newsBox.scroll;  
if (Number(currentScroll)\<Number(newsBox.maxscroll)) {  
newsBox.scroll = Number(currentScroll)+1;  
}  
}  
[/AS]

Which quite obviously causes the text box to scroll. How can I make so if you press and hold it continues to scroll? As it stands you have to click click click to make it scroll further.

And on a side note, how would I make it scroll when you rollover (and continue to scroll as long as your mouse is over it)
