# Using the keypad to move objects

**URL:** <https://forum.kirupa.com/t/using-the-keypad-to-move-objects/27768>\
**Category:** Uncategorized\
**Created:** [August 6, 2003, 1:09pm UTC](https://forum.kirupa.com/t/using-the-keypad-to-move-objects/27768 "2003-08-06T13:09:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![fadi](https://avatars.discourse-cdn.com/v4/letter/f/ecae2f/32.png) [@fadi](https://forum.kirupa.com/u/fadi)\
**Post date:** [August 6, 2003, 1:09pm UTC](https://forum.kirupa.com/t/using-the-keypad-to-move-objects/27768/1 "2003-08-06T13:09:25Z")

</div>

Hey Guys…

I want to know how i can use the keypad (up,down,left,right) to move objects…

I know that when hte left button is pressed u just tell it to this.object.\_x += 1… .and so on, but i dont know the syntax to check if it has been pressed… u get my drift ???

---

<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:** [August 6, 2003, 1:25pm UTC](https://forum.kirupa.com/t/using-the-keypad-to-move-objects/27768/2 "2003-08-06T13:25:41Z")

</div>

haha no… nice avatar tho man

**R.I.P 2PAC**

---

<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:** [August 6, 2003, 1:25pm UTC](https://forum.kirupa.com/t/using-the-keypad-to-move-objects/27768/3 "2003-08-06T13:25:49Z")

</div>

I think i have figured it out… but it doesnt seem to work

this is what i have…

Can somone please help me out, I really need to learn this!

---

<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:** [August 6, 2003, 1:30pm UTC](https://forum.kirupa.com/t/using-the-keypad-to-move-objects/27768/4 "2003-08-06T13:30:24Z")

</div>

i dunno wot ur askin…

---

<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:** [August 6, 2003, 1:34pm UTC](https://forum.kirupa.com/t/using-the-keypad-to-move-objects/27768/5 "2003-08-06T13:34:45Z")

</div>

did u download the flash…

well i want to be able to press the right left up down keys and in respect go the way its been asked ???

I know its not hard for intermediate to experienced users…

Thanks guys

---

<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:** [August 6, 2003, 1:56pm UTC](https://forum.kirupa.com/t/using-the-keypad-to-move-objects/27768/6 "2003-08-06T13:56:51Z")

</div>

yea, i downloaded it… when i press up it will go up, down it goes down, right it goes right, left it goes left…

mind you watch that tho bcos it moves very slightly so you might not be noticing it…

---

<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:** [August 6, 2003, 2:29pm UTC](https://forum.kirupa.com/t/using-the-keypad-to-move-objects/27768/7 "2003-08-06T14:29:43Z")

</div>

> \*Originally posted by HipHop \*  
> \*\*yea, i downloaded it… when i press up it will go up, down it goes down, right it goes right, left it goes left…

mind you watch that tho bcos it moves very slightly so you might not be noticing it… \*\*

HipHop what are you talking about it moves ‘slighty’ ?? It doesnt move at all.

Fadi, you were on the right lines so well done for that.

There a many ways of doing what you want. But there is one very simple way. Check the modified fla i’ve attached and check the actions for the movie clip ‘circle’.

Regards,  
Viru.

---

<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:** [August 6, 2003, 5:05pm UTC](https://forum.kirupa.com/t/using-the-keypad-to-move-objects/27768/8 "2003-08-06T17:05:01Z")

</div>

i seeeee wot u mean now… yea my bad

---

<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:** [August 8, 2003, 3:06am UTC](https://forum.kirupa.com/t/using-the-keypad-to-move-objects/27768/9 "2003-08-08T03:06:31Z")

</div>

haha its kool man…

Thanks Viru for your help, I havent had the chance to see the modification u have made, because i found a tutorial that showed me how to do it… Its very easy in fact!!

But i am going to check yours out, because u mite have done it a different way, and it is good to be able to do the same thing in more then one way, Any way i should get back to work!!
