# Simple scroll problem

**URL:** https://forum.kirupa.com/t/simple-scroll-problem/53401
**Category:** Uncategorized
**Created:** [June 3, 2004, 11:05am UTC](https://forum.kirupa.com/t/simple-scroll-problem/53401 "2004-06-03T11:05:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![waztone](https://avatars.discourse-cdn.com/v4/letter/w/cdc98d/32.png) [@waztone](https://forum.kirupa.com/u/waztone)
#### Post date: [June 3, 2004, 11:05am UTC](https://forum.kirupa.com/t/simple-scroll-problem/53401/1 "2004-06-03T11:05:39Z")

</div>

Hi there Kirupians!

I’ve got a simple problem and I can’t remember how to fix this.  
I have a textField with text greater than the field.  
Below this textField I have two buttons. scroll\_down\_btn and scroll\_up\_btn.  
These buttons scroll the text once they’re pressed.  
[AS]on(press){  
textField.scroll =+1  
}[/AS]

But how do I have to change my code so that as long as the user holds the mouse down over the button, the text keeps on scrolling?  
In the current situation the user has to click the button for each line he/she wants to scroll.

Can anybody help me?
