# Problem with streamless scrolling

**URL:** <https://forum.kirupa.com/t/problem-with-streamless-scrolling/131289>\
**Category:** Uncategorized\
**Created:** [December 14, 2004, 9:46am UTC](https://forum.kirupa.com/t/problem-with-streamless-scrolling/131289 "2004-12-14T09:46:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chup](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/chup/32/925_2.png) [@chup](https://forum.kirupa.com/u/chup)\
**Post date:** [December 14, 2004, 9:46am UTC](https://forum.kirupa.com/t/problem-with-streamless-scrolling/131289/1 "2004-12-14T09:46:41Z")

</div>

Hi, I having problem with this follow streamless scrolling.

Please download the file here  
[http://www.dreamance.com/download/problem.zip](http://www.dreamance.com/download/problem.zip)

Here is the core code

```auto

onClipEvent (load) {
	rowWidth = 0;
	speed = 0.2;
	newPos = this._x;
}
//
//
onClipEvent (enterFrame) {
	_x = _x+Math.ceil((newPos-_x)*speed);
	//
	trace("x "+_x);
	trace("n "+newPos);
	if (_x<((rowWidth/3)*-1)-3) {
		_x = 15;
	}
}

```

Basically, when user click on the right button, the movie will scroll (working) When it \_x exceed it width, it will reposition itself to create a streamless illusion (not working) Can someone please enlighten me what went wrong?
