# How to make mc move in relation to scrolling?

**URL:** <https://forum.kirupa.com/t/how-to-make-mc-move-in-relation-to-scrolling/45507>\
**Category:** Uncategorized\
**Created:** [March 15, 2004, 12:25pm UTC](https://forum.kirupa.com/t/how-to-make-mc-move-in-relation-to-scrolling/45507 "2004-03-15T12:25:57Z")\
**Posts on this page:** 4\
**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/45507/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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 15, 2004, 12:46pm UTC](https://forum.kirupa.com/t/how-to-make-mc-move-in-relation-to-scrolling/45507/2 "2004-03-15T12:46:05Z")

</div>

Check for my attachment on this thread:  
[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=48562](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=48562)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 15, 2004, 12:54pm UTC](https://forum.kirupa.com/t/how-to-make-mc-move-in-relation-to-scrolling/45507/3 "2004-03-15T12:54:42Z")

</div>

Thanks a lot Claudio! I’ll try asap.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 15, 2004, 12:58pm UTC](https://forum.kirupa.com/t/how-to-make-mc-move-in-relation-to-scrolling/45507/4 "2004-03-15T12:58:52Z")

</div>

Welcome 🙂
