# Scroller problem

**URL:** https://forum.kirupa.com/t/scroller-problem/13554
**Category:** flash
**Created:** [February 14, 2003, 4:15pm UTC](https://forum.kirupa.com/t/scroller-problem/13554 "2003-02-14T16:15:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![KIOD](https://avatars.discourse-cdn.com/v4/letter/k/8797f3/32.png) [@KIOD](https://forum.kirupa.com/u/KIOD)
#### Post date: [February 14, 2003, 4:15pm UTC](https://forum.kirupa.com/t/scroller-problem/13554/1 "2003-02-14T16:15:23Z")

</div>

Hello. I have a basic scroller that has these actions on a button:

on (press, release, keyPress “\<Up\>”) {  
currentScroll = scrollableText.scroll;  
if (Number(currentScroll)\>1) {  
scrollableText.scroll = currentScroll-1;  
}  
}

What I need is to scroll while my button is pressed down. With the current actions i have to click the button many times to enter the bottom of my text. I cant just hold it down. Somebody got some juice codes to give a poor bastard??:pirate:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 14, 2003, 5:19pm UTC](https://forum.kirupa.com/t/scroller-problem/13554/2 "2003-02-14T17:19:12Z")

</div>

hmm…not sure if this would work or not, but try this:

```php
on (press){
currentScroll = scrollableText.scroll;
if (Number(currentScroll)>1) {
scrollableText.scroll = currentScroll-1;
}
}

```

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 14, 2003, 6:03pm UTC](https://forum.kirupa.com/t/scroller-problem/13554/3 "2003-02-14T18:03:43Z")

</div>

[http://www.kirupaforum.com/showthread.php?s=&threadid=11948](http://www.kirupaforum.com/showthread.php?s=&threadid=11948)
