# How do I get button to scroll continuously?

**URL:** https://forum.kirupa.com/t/how-do-i-get-button-to-scroll-continuously/293363
**Category:** flash
**Created:** [July 27, 2009, 11:46pm UTC](https://forum.kirupa.com/t/how-do-i-get-button-to-scroll-continuously/293363 "2009-07-27T23:46:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DH1234](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@DH1234](https://forum.kirupa.com/u/DH1234)
#### Post date: [July 27, 2009, 11:46pm UTC](https://forum.kirupa.com/t/how-do-i-get-button-to-scroll-continuously/293363/1 "2009-07-27T23:46:08Z")

</div>

Okay, so I currently have this working successfully;

```auto
function scrollUp (Event:MouseEvent):void {
    
    myMarker_mc.myText.scrollV -= 1;
}

function scrollDown (Event:MouseEvent):void {
    
    myMarker_mc.myText.scrollV += 1;
}

myMarker_mc.bt_up.addEventListener(MouseEvent.CLICK,scrollUp);
myMarker_mc.bt_dn.addEventListener (MouseEvent.CLICK,scrollDown);

```

This basically ensures that when the button (myMarker\_mc.bt\_up OR bt\_dn) is clicked it scrolls up/down. However, if there is alot of information, the user can end up having to press the mouse button loads times! How could I alter the functions to ensure a smooth continuous scroll is achieved by holding the mouse button down.

I had previously thought that just changing the MouseEvent from CLICK to\_DOWN would work…I was wrong!

Thanks for your help
