# Help: motion?

**URL:** <https://forum.kirupa.com/t/help-motion/80059>\
**Category:** Uncategorized\
**Created:** [February 18, 2005, 10:49pm UTC](https://forum.kirupa.com/t/help-motion/80059 "2005-02-18T22:49:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luigi\_Vercotti](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@Luigi\_Vercotti](https://forum.kirupa.com/u/Luigi_Vercotti)\
**Post date:** [February 18, 2005, 10:49pm UTC](https://forum.kirupa.com/t/help-motion/80059/1 "2005-02-18T22:49:37Z")

</div>

```auto
 
var xSpeed:Number = 10;
var xEasy:Number = .6;
//var xStop:Number = 
ballX.onEnterFrame = function ():Void{
xSpeed *= xEasy;
this._x -= xSpeed;
}

```

I made this script to move my movie clip “ballX” to the left and stop and I want to return it back. How do I do it?  
I want move the ballX few pixels to the left and then back to the right. I want to move let say 20 pix to the left and 20 pix back, I know how to do it with position of \_x, but I want this “ballX” put it anywhere on the stage later on.

:luigi:
