# Scroling movie clip buttons

**URL:** https://forum.kirupa.com/t/scroling-movie-clip-buttons/205069
**Category:** flash
**Created:** [October 25, 2006, 8:37pm UTC](https://forum.kirupa.com/t/scroling-movie-clip-buttons/205069 "2006-10-25T20:37:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wooden](https://avatars.discourse-cdn.com/v4/letter/w/e99b99/32.png) [@wooden](https://forum.kirupa.com/u/wooden)
#### Post date: [October 25, 2006, 8:37pm UTC](https://forum.kirupa.com/t/scroling-movie-clip-buttons/205069/1 "2006-10-25T20:37:58Z")

</div>

Hi there.  
I’d like to be able to apply some AS to an up and down button that will scroll a movie clip - but it is getting the better of me.  
The following AS is what I have a applied to a scroller on some dinamic text on my site - is it much of an ammendment to apply something like this to a move clip? Or am I way off?  
Any help would be fantastic.

Cheers.

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

Down button AS for text scroller:  
on (press, release, keyPress “\<Down\>”) {  
currentScroll = scrollableText.scroll;  
if (Number(currentScroll)\<Number(scrollableText.maxscroll)) {  
scrollableText.scroll = Number(currentScroll)+1;  
}  
}
