# Moving a Mc!

**URL:** <https://forum.kirupa.com/t/moving-a-mc/128091>\
**Category:** Uncategorized\
**Created:** [November 9, 2004, 2:35pm UTC](https://forum.kirupa.com/t/moving-a-mc/128091 "2004-11-09T14:35:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierter](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@pierter](https://forum.kirupa.com/u/pierter)\
**Post date:** [November 9, 2004, 2:35pm UTC](https://forum.kirupa.com/t/moving-a-mc/128091/1 "2004-11-09T14:35:16Z")

</div>

Hi everyone!

I need help with my flash movie. I would like to move a Mc with 2 buttons without having to simulate the actual movement inside the movieclip.

I have managed to move the clip with the arrow keys with this script:

onClipEvent (load) {  
// declare and set speed variable  
speed = 5;  
}  
onClipEvent (enterFrame) {  
if (Key.isDown(Key.UP) && !Key.isDown(Key.DOWN)) {  
\_y -= speed;  
}  
if (Key.isDown(Key.DOWN) && !Key.isDown(Key.UP)) {  
\_y += speed;  
}  
}

but i haven’t figured out how to do this with using buttons.  
Any help much appreciated!  
pier
