# Help with movement animation

**URL:** <https://forum.kirupa.com/t/help-with-movement-animation/123058>\
**Category:** Uncategorized\
**Created:** [September 20, 2004, 1:40am UTC](https://forum.kirupa.com/t/help-with-movement-animation/123058 "2004-09-20T01:40:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![acor](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@acor](https://forum.kirupa.com/u/acor)\
**Post date:** [September 20, 2004, 1:40am UTC](https://forum.kirupa.com/t/help-with-movement-animation/123058/1 "2004-09-20T01:40:04Z")

</div>

Please help me make it so when my character moves is plays the whole movement animation and not just one frame. Heres the code:

```auto
onClipEvent (load) {
moveSpeed = 4;
}
onClipEvent (enterFrame) {
if (Key.isDown (Key.RIGHT)) {
this._x += moveSpeed; _xscale = -100;
this.gotoAndPlay(1);
}
if (Key.isDown (Key.LEFT)) {
this._x -= moveSpeed; _xscale = 100;
this.gotoAndPlay(1)
}
 

```

the movemnt animation is 10 frames long but it only plays the first frame in the movie clip and then stops.

I want it to be something like this [http://baiwanfuong.notix.net/tienzsiyusi.htm](http://baiwanfuong.notix.net/tienzsiyusi.htm)

Please help me Chen!
