# DragBar

**URL:** <https://forum.kirupa.com/t/dragbar/22801>\
**Category:** flash\
**Created:** [June 9, 2003, 12:54am UTC](https://forum.kirupa.com/t/dragbar/22801 "2003-06-09T00:54:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![QBA](https://avatars.discourse-cdn.com/v4/letter/q/e0b2c6/32.png) [@QBA](https://forum.kirupa.com/u/QBA)\
**Post date:** [June 9, 2003, 12:54am UTC](https://forum.kirupa.com/t/dragbar/22801/1 "2003-06-09T00:54:24Z")

</div>

Hello Everyone

This is my first thread on this forum

Here goes my first question 🙂

Hi

I’m working on a file with images moving in relation to the \_y position of the mouse, I got that part working so far now I want to use a dragBar, to control that when the draging bar is move up the MC that has the images start to move toward a \_y position up or down that I set up as a limit to where the MC is going to move.

here is the script I have as now for the MC with the images and everything is working fine:

onClipEvent (enterFrame) {  
yMovement = (287 - \_root.\_ymouse) / 20  
if (((this.\_y \>=285) && (yMovement \> 0))||((this.\_y \<=-250) && (yMovement \<0))) {  
yMovement =0;  
}

this.\_y =this.\_y + yMovement;

}

So now I want to set up the drag bar beside it that when is all the way to the top the MC stop on \_y 550 and when the drag bar is all the way to the bottom it stop in \_y 13.3

Can some one tell me please how can I get this to work?

Just in case it’s kind of confusing the way I’m rephrasing the question here are the files which should make everything easier to understand.

ftp://65.49.66.147/

Thanks

Alex

---

<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:** [June 9, 2003, 7:37am UTC](https://forum.kirupa.com/t/dragbar/22801/2 "2003-06-09T07:37:13Z")

</div>

you mean you want to scroll a vertically a movieclip using a scrollbar?
