# Continuous Scrolling button action?

**URL:** <https://forum.kirupa.com/t/continuous-scrolling-button-action/149183>\
**Category:** flash\
**Created:** [May 26, 2005, 5:43pm UTC](https://forum.kirupa.com/t/continuous-scrolling-button-action/149183 "2005-05-26T17:43:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MArll](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@MArll](https://forum.kirupa.com/u/MArll)\
**Post date:** [May 26, 2005, 5:43pm UTC](https://forum.kirupa.com/t/continuous-scrolling-button-action/149183/1 "2005-05-26T17:43:38Z")

</div>

hi,  
i have this code in my flash movie to scroll a large image behind a rectangular mask:

left\_btn.onPress = function () {  
drag\_mc.\_x-=10;  
}

right\_btn.onPress = function () {  
drag\_mc.\_x+=10;  
}

All i want to know is, can i make the movement continuous, onPress, instead of the user having to click for each increment? this would make the viewer really smooth!  
thanks for any help or advice,

marl
