# Scroller problems

**URL:** <https://forum.kirupa.com/t/scroller-problems/204718>\
**Category:** Uncategorized\
**Created:** [October 23, 2006, 12:10am UTC](https://forum.kirupa.com/t/scroller-problems/204718 "2006-10-23T00:10:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m\_h\_w](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@m\_h\_w](https://forum.kirupa.com/u/m_h_w)\
**Post date:** [October 23, 2006, 12:10am UTC](https://forum.kirupa.com/t/scroller-problems/204718/1 "2006-10-23T00:10:36Z")

</div>

Hey im having some trouble with a scroller. For some reason the button that scroll upp doesent work properly. Its acting real wierd. It for a website i am making as an assignment for my digital application course.

Link: [**Scroll swf**](http://www.martinhaukaas.com/slow/Slow%20movement%20webpage2.swf)

The code:

```auto
btnUp.onPress = function() {
		this.onEnterFrame = function() {
			if (contentMain._y + speed < maskedView._y) {
				if (dragger._y <= top) {
					dragger._y = top;
					contentMain._y += speed;
				} else {
					contentMain._y += speed;
					dragger._y -= speed / moveVal;
				}
			} else {
				dragger._y = top;
				contentMain._y = maskedView._y;
				delete this.onEnterFrame;
			}
		};
	};
	btnUp.onDragOut = function() {
		delete this.onEnterFrame;
	};
	btnUp.onMouseOut = function() {
		delete this.onEnterFrame;
	};

```

apretiate all the help i can get. 😃
