# Scroller problem

**URL:** <https://forum.kirupa.com/t/scroller-problem/239997>\
**Category:** Uncategorized\
**Created:** [September 28, 2007, 12:50am UTC](https://forum.kirupa.com/t/scroller-problem/239997 "2007-09-28T00:50:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jibble](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jibble/32/2265_2.png) [@jibble](https://forum.kirupa.com/u/jibble)\
**Post date:** [September 28, 2007, 12:50am UTC](https://forum.kirupa.com/t/scroller-problem/239997/1 "2007-09-28T00:50:26Z")

</div>

im working on a slider that i want to position to the stage according to the \_ymouse. Here’s the problem. I’m using some code that i really like because of the ease on it. But i’m having problems getting it to position where i want it and control it so that the top and bottom of the clip refers to the stage…if that makes any sense. I did not write the code, but i’ve changed it so that its vertical as you’ll see. Everything “works” except aligning it to the stage according to \_ymouse

Kind of like the portfolio page here. but i want the ease action that i have in the code. Any thoughts

> **[Andreas Wannerstedt - Projects](http://www.andreaswannerstedt.se/)**
>
> The portfolio of Andreas Wannerstedt, a Swedish designer & motion graphics artist

Heres my code

```auto
menuActive = 1;
bounce("_alpha",100,scroller,5,0);
startPosition = -60;
scrollArea = 908;
this.onMouseMove = function() {
	if ((this._ymouse>startPosition) && (this._ymouse<(startPosition+scrollArea)) && (this._xmouse>scroller._x) && (this._xmouse<(scroller._x+425)) && (menuActive == 1)) {
		if (scroller._height>scrollArea) {
			positionScroller();
		}
	}
};
getScrollerWidth = function () {
	scrollerWidth = scroller._height;
};
getScrollerWidth();
positionScroller = function () {

```
