# Running thing

**URL:** https://forum.kirupa.com/t/running-thing/57616
**Category:** flash
**Created:** [July 14, 2004, 6:31pm UTC](https://forum.kirupa.com/t/running-thing/57616 "2004-07-14T18:31:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![phree\_style](https://avatars.discourse-cdn.com/v4/letter/p/c77e96/32.png) [@phree\_style](https://forum.kirupa.com/u/phree_style)
#### Post date: [July 14, 2004, 6:31pm UTC](https://forum.kirupa.com/t/running-thing/57616/1 "2004-07-14T18:31:11Z")

</div>

I am making a game with a guy running, and when the key is let go he is still running or the animation is still going, how would i make it when the key is up he stops running?

---

<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 14, 2004, 6:41pm UTC](https://forum.kirupa.com/t/running-thing/57616/2 "2004-07-14T18:41:39Z")

</div>

> [@phree style](#):
>
> I am making a game with a guy running, and when the key is let go he is still running or the animation is still going, how would i make it when the key is up he stops running?

on the timeline containing the runner(instance name runner\_mc)  
runner\_mc.onEnterFrame = function() {  
if (key.isDown(Key.LEFT)) {  
this.play();  
} else {  
this.stop();  
}  
};
