# Movement Scripting

**URL:** <https://forum.kirupa.com/t/movement-scripting/214332>\
**Category:** flash\
**Created:** [January 27, 2007, 6:15pm UTC](https://forum.kirupa.com/t/movement-scripting/214332 "2007-01-27T18:15:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZumoWrestler](https://avatars.discourse-cdn.com/v4/letter/z/f05b48/32.png) [@ZumoWrestler](https://forum.kirupa.com/u/ZumoWrestler)\
**Post date:** [January 27, 2007, 6:15pm UTC](https://forum.kirupa.com/t/movement-scripting/214332/1 "2007-01-27T18:15:11Z")

</div>

Hey Everyone,

I’m trying to get into the scripting side of flash and less animation (I’m a Computer Animation Major so I get enough of that lol) and I’m wondiner how or if you can chain move an object via scirpting. Example…

Say I have ‘MyObject’ and it is located at (0, 0) and with scripting I want to first move that to (-10, 0) then move it to (100, 0). The scipt I normal work with for movement is as follows.

```auto
onClipEvent (load) { 
xMove = 10; 
zMove = 100;
yMove = 100;
easeSpeed = 7;
alphaSetter = 100;
}
onClipEvent (enterFrame) {
this._alpha += (alphaSetter - _alpha)/easeSpeed;
this._xscale += (zMove - _xscale)/easeSpeed;
this._yscale += (zMove - _yscale)/easeSpeed;
_x += (xMove -_x)/easeSpeed;
_y += (yMove -_y)/easeSpeed;
}

```

So far every attempt at chain moving an object has been a failure, any ideas?
