# Dynamic Movement help

**URL:** https://forum.kirupa.com/t/dynamic-movement-help/165655
**Category:** flash
**Created:** [October 12, 2005, 9:27pm UTC](https://forum.kirupa.com/t/dynamic-movement-help/165655 "2005-10-12T21:27:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nik\_fiending](https://avatars.discourse-cdn.com/v4/letter/n/b5ac83/32.png) [@nik\_fiending](https://forum.kirupa.com/u/nik_fiending)
#### Post date: [October 12, 2005, 9:27pm UTC](https://forum.kirupa.com/t/dynamic-movement-help/165655/1 "2005-10-12T21:27:25Z")

</div>

I have a movie clip that is moving dynamically with this code.

```auto

onClipEvent(enterFrame) {
	speed = -5;
	this._x += speed;
}

```

What I need is to find out how to stop this movement at a \_x postiiton.

any help will be appreciated.
