# Infinite Scroll Help

**URL:** <https://forum.kirupa.com/t/infinite-scroll-help/200605>\
**Category:** flash\
**Created:** [September 13, 2006, 4:27pm UTC](https://forum.kirupa.com/t/infinite-scroll-help/200605 "2006-09-13T16:27:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crom](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@crom](https://forum.kirupa.com/u/crom)\
**Post date:** [September 13, 2006, 4:27pm UTC](https://forum.kirupa.com/t/infinite-scroll-help/200605/1 "2006-09-13T16:27:13Z")

</div>

I am working on an infinitely scrolling image field that reacts to the user’s mouse similar to the one in this tutorial:

[http://www.kirupa.com/developer/mx/infinite.htm](http://www.kirupa.com/forum/../developer/mx/infinite.htm)

The only difference is that my content is much wider than the flash window whereas the one in this tutorial is exactly the size of the Flash window.

The code is:

```auto
onClipEvent (load)
{
   xcenter=150;
   speed=1/20;
}
onClipEvent (enterFrame)
{
   var distance=_root._xmouse-xcenter;
   _x+=(distance*speed);
   if (_x > 0) _x=-300;
   if (_x < -300) _x=0;
}

```

Can anyone help me with this? My deadline is approaching quickly.  
Thanks!
