# Problem with basic movement of objects

**URL:** https://forum.kirupa.com/t/problem-with-basic-movement-of-objects/59138
**Category:** Uncategorized
**Created:** [July 28, 2004, 6:27pm UTC](https://forum.kirupa.com/t/problem-with-basic-movement-of-objects/59138 "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/59138/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: ![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 29, 2004, 12:38am UTC](https://forum.kirupa.com/t/problem-with-basic-movement-of-objects/59138/2 "2004-07-29T00:38:07Z")

</div>

Welcome to kirupaForum, yeloshu. 🙂

Isn’t there an underscore missing?

```auto
_x = _x+1;

```
