# Problem with basic movement of objects

**URL:** https://forum.kirupa.com/t/problem-with-basic-movement-of-objects/117602
**Category:** Uncategorized
**Created:** [July 28, 2004, 6:27pm UTC](https://forum.kirupa.com/t/problem-with-basic-movement-of-objects/117602 "2004-07-28T18:27:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![yeloshu](https://avatars.discourse-cdn.com/v4/letter/y/ac8455/32.png) [@yeloshu](https://forum.kirupa.com/u/yeloshu)
#### Post date: [July 28, 2004, 6:27pm UTC](https://forum.kirupa.com/t/problem-with-basic-movement-of-objects/117602/1 "2004-07-28T18:27:16Z")

</div>

i made a button with the script of onMouseevent key press up that would do “\_x = x+1”  
and it worked with exception of the fact that it would only work once.  
I made those for up down left and right and i could go up down up down and so on but i could only hit the button once before i had to hit the opposite direction.

I am using flash 5.  
Any help would be greatly appreciated.

---

<div class="post-metadata">

### Author: ![kode](https://avatars.discourse-cdn.com/v4/letter/k/97f17d/32.png) [@kode](https://forum.kirupa.com/u/kode)
#### Post date: [July 29, 2004, 12:38am UTC](https://forum.kirupa.com/t/problem-with-basic-movement-of-objects/117602/2 "2004-07-29T00:38:07Z")

</div>

Welcome to kirupaForum, yeloshu. 🙂

Isn’t there an underscore missing?

```auto
_x = _x+1;

```
