# Invert infinite menu direction

**URL:** <https://forum.kirupa.com/t/invert-infinite-menu-direction/124142>\
**Category:** Uncategorized\
**Created:** [September 30, 2004, 10:22am UTC](https://forum.kirupa.com/t/invert-infinite-menu-direction/124142 "2004-09-30T10:22:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ubik](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@Ubik](https://forum.kirupa.com/u/Ubik)\
**Post date:** [September 30, 2004, 10:22am UTC](https://forum.kirupa.com/t/invert-infinite-menu-direction/124142/1 "2004-09-30T10:22:33Z")

</div>

Hello people,  
I have a little question. How can i change change direction of the infinite menu? I mean i go to the left, the menu will go to the right. i’m using this code

```auto
onClipEvent (load) {
	xcenter = 350;
	speed = 1/10;
	_x=50
	}
onClipEvent (enterFrame) {
	var distance = _root._xmouse-xcenter;
	if (_root.maskmc.hitTest(_root._xmouse, _root._ymouse)) {
		_x += (distance*speed);
		if (_x>50) {
			_x = 50;
		}
		if (_x<-2658) {
			_x = -2658;
		}
	}
}

```

is it possible to invert the \_xmouse ?
