# \_x and \_y position

**URL:** https://forum.kirupa.com/t/-x-and--y-position/56893
**Category:** flash
**Created:** [July 8, 2004, 4:45pm UTC](https://forum.kirupa.com/t/-x-and--y-position/56893 "2004-07-08T16:45:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![xul\_solar](https://avatars.discourse-cdn.com/v4/letter/x/ec9cab/32.png) [@xul\_solar](https://forum.kirupa.com/u/xul_solar)
#### Post date: [July 8, 2004, 4:45pm UTC](https://forum.kirupa.com/t/-x-and--y-position/56893/1 "2004-07-08T16:45:43Z")

</div>

hi, i have this

onClipEvent(enterFrame){

```
     speed=5;
     this._x+=2;          

```

}

i wanna know how do i stop the movie clip in a place?  
heeeelllllPPPP  
thanks

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 8, 2004, 6:08pm UTC](https://forum.kirupa.com/t/-x-and--y-position/56893/2 "2004-07-08T18:08:33Z")

</div>

Use an if statement.

```auto
onClipEvent(enterFrame){
if(this._x<=value to stop){
this._x+=2;
}

```
