# Help needed with scrollable text!

**URL:** https://forum.kirupa.com/t/help-needed-with-scrollable-text/131
**Category:** Uncategorized
**Created:** [July 6, 2002, 1:20pm UTC](https://forum.kirupa.com/t/help-needed-with-scrollable-text/131 "2002-07-06T13:20:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Doing\_Time](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@Doing\_Time](https://forum.kirupa.com/u/Doing_Time)
#### Post date: [July 6, 2002, 1:20pm UTC](https://forum.kirupa.com/t/help-needed-with-scrollable-text/131/1 "2002-07-06T13:20:26Z")

</div>

I want that the text move upwards or downwards when im pressing the up or down button. I already tried the tutorials from kirupa but there I must release the up or down button each time.

I use this code:

on (press) {  
currentScroll = l1.scroll;  
if (Number(currentScroll)\>1) {  
l1.scroll = currentScroll-1;  
}  
}

but what i want is that the text move up or down when i still pressing the button (Like the scroll buttons from window). Not press, release. press, release.

---

<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: [July 7, 2002, 7:27am UTC](https://forum.kirupa.com/t/help-needed-with-scrollable-text/131/2 "2002-07-07T07:27:43Z")

</div>

You need to use a looped controler clip.  
(huh, what’s that?..)  
on the button, use on (press) {controllerUp.gotoAndPlay(2)}; and on (release, releaseOutside) {controllerUp.gotoAndStop(1)};

where controllerUp is a 3 frame clip with only actions in it.  
so this clip contains:  
frame 1: stop  
frame 2: pathToScrolledObject.scroll++; //change to – in controllerDown clip to scroll…well, down…might be the opposite  
frame 3: gotoAndPlay(2); //loops the clip, which controls and scrolls, as long as the button is pressed.

so you got two controller clips which get activated by the up&down buttons and scroll your stuff as long as the button is pressed.  
was that detailed enough?

---

<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: [July 10, 2002, 7:26pm UTC](https://forum.kirupa.com/t/help-needed-with-scrollable-text/131/3 "2002-07-10T19:26:14Z")

</div>

how would you do it with a rollover as a scroll command?
