# Creating a smooth scrolling MC containing btns

**URL:** https://forum.kirupa.com/t/creating-a-smooth-scrolling-mc-containing-btns/224914
**Category:** flash
**Created:** [May 7, 2007, 6:16am UTC](https://forum.kirupa.com/t/creating-a-smooth-scrolling-mc-containing-btns/224914 "2007-05-07T06:16:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Booger](https://avatars.discourse-cdn.com/v4/letter/b/90ced4/32.png) [@Booger](https://forum.kirupa.com/u/Booger)
#### Post date: [May 7, 2007, 6:16am UTC](https://forum.kirupa.com/t/creating-a-smooth-scrolling-mc-containing-btns/224914/1 "2007-05-07T06:16:03Z")

</div>

Hi all,

Creating my own navigation pane by using a movie clip that contains btns.  
This navigation pane is quite long, many btns, so I have set it in a mask and now I am trying to make it scroll smoothly, vertically.  
This is what I have managed to get working so far:-

up\_btn.onRelease = function() {  
navBar\_mc.\_y -= 2;  
};

(Obviously down is opposite to that)

However, what I want to achieve is something like:-

up\_btn.[COLOR=“Red”]onRollOver[/COLOR] = function() {  
navBar\_mc.[COLOR=“red”]scroll[/COLOR] -= 2;  
};

Obviously the above code is incorrect but it gives you an idea what I am trying to achieve.  
Once I have made it scroll up and down successfully, I assume that I would have to code in some boundaries for the mc boundary.

Any help would be much appreciated.

Cheers,

Dave
