# Reversing Scroll Direction

**URL:** <https://forum.kirupa.com/t/reversing-scroll-direction/153472>\
**Category:** flash\
**Created:** [July 1, 2005, 5:13pm UTC](https://forum.kirupa.com/t/reversing-scroll-direction/153472 "2005-07-01T17:13:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![evljeenyiss](https://avatars.discourse-cdn.com/v4/letter/e/e495f1/32.png) [@evljeenyiss](https://forum.kirupa.com/u/evljeenyiss)\
**Post date:** [July 1, 2005, 5:13pm UTC](https://forum.kirupa.com/t/reversing-scroll-direction/153472/1 "2005-07-01T17:13:41Z")

</div>

I have a website I am working on which requires two objects scrolling across the screen. I have done this fine. But I recently learned they need to be scrolling in different directions. How do I do this?

```auto
onClipEvent (load)
{
   xcenter=150;
   speed=1/10;
}
onClipEvent (enterFrame)
{
   _x-=(7);
   if (_x > 0) _x=-792;
   if (_x < -792) _x=0;
}

```
