DragBar

Hello Everyone

This is my first thread on this forum

Here goes my first question :slight_smile:

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

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