# How to make mc move in relation to scrolling?

**URL:** https://forum.kirupa.com/t/how-to-make-mc-move-in-relation-to-scrolling/104353
**Category:** Uncategorized
**Created:** [March 15, 2004, 12:25pm UTC](https://forum.kirupa.com/t/how-to-make-mc-move-in-relation-to-scrolling/104353 "2004-03-15T12:25:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kathari](https://avatars.discourse-cdn.com/v4/letter/k/a183cd/32.png) [@kathari](https://forum.kirupa.com/u/kathari)
#### Post date: [March 15, 2004, 12:25pm UTC](https://forum.kirupa.com/t/how-to-make-mc-move-in-relation-to-scrolling/104353/1 "2004-03-15T12:25:57Z")

</div>

How do I make an mc move in relation to the amount I scroll a text? I am not advanced enough to be able to break down the (Flash UI)scrollbar component and change it to my own liking (if it’s possible) so I’d like to fake it.  
I have two mc’s that make my text scroll up or down and I’d like to have a mc moving in between them like a regular scrollbar.  
The code on the mc’s that scroll:  
[AS]this.onEnterFrame = function() {  
if (pressing == true) {  
\_root.mcholder.texten.scroll = \_root.mcholder.texten.scroll+movement;  
}  
};  
[/AS]  
and on the button:  
[AS]on (press) {  
pressing = true;  
movement = -1;  
}  
on (release) {  
pressing = false;  
}[/AS]  
with movement =+1 on the other button

or can someone point me to a tutorial?  
Thanks in advance
