# Urgent help

**URL:** <https://forum.kirupa.com/t/urgent-help/249643>\
**Category:** Uncategorized\
**Created:** [January 21, 2008, 10:40am UTC](https://forum.kirupa.com/t/urgent-help/249643 "2008-01-21T10:40:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![montyT](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@montyT](https://forum.kirupa.com/u/montyT)\
**Post date:** [January 21, 2008, 10:40am UTC](https://forum.kirupa.com/t/urgent-help/249643/1 "2008-01-21T10:40:59Z")

</div>

I guys i am trying to make Movie clip movement to infinite loop to x axis.  
It should move like left to right on loop, without any jurk.  
i used this code. this is working fine to move left, but i am not getting how should i make it move on looop.

```auto

this.onEnterFrame = function() {
	if (this.masked._x>-100) {
		this.masked._x += -10;
	} else {
		this.masked._x += 100;
	}
};

```

any suggestion or help?  
thanks for your time  
🙂
