# AS3 movei clip will not loop when arrow keys are held down

**URL:** https://forum.kirupa.com/t/as3-movei-clip-will-not-loop-when-arrow-keys-are-held-down/273267
**Category:** flash
**Created:** [October 13, 2008, 8:33pm UTC](https://forum.kirupa.com/t/as3-movei-clip-will-not-loop-when-arrow-keys-are-held-down/273267 "2008-10-13T20:33:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ChiWhiteSox56](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@ChiWhiteSox56](https://forum.kirupa.com/u/ChiWhiteSox56)
#### Post date: [October 13, 2008, 8:33pm UTC](https://forum.kirupa.com/t/as3-movei-clip-will-not-loop-when-arrow-keys-are-held-down/273267/1 "2008-10-13T20:33:54Z")

</div>

Hello all,

I’m having a problem with a little game that I’m making. I have a movie clip of a character who is supposed to walk when the arrow keys are held down. The character does move in response to the keys being held down, but the walk cycle in the movie clip only plays once. (Flash file is attached.)

I used a Trace in the code to see what the issue is, and one thing that I noticed is that the function seems to run over and over. I’m wondering if that has something to do with it?

I’m definitely a newbie, so there’s a good chance that I’m missing something simple. Any assistance would be greatly appreciated!

Thank you.
