# Flash game character animation AS3

**URL:** <https://forum.kirupa.com/t/flash-game-character-animation-as3/318585>\
**Category:** flash\
**Created:** [January 24, 2011, 5:23pm UTC](https://forum.kirupa.com/t/flash-game-character-animation-as3/318585 "2011-01-24T17:23:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dadagu](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@Dadagu](https://forum.kirupa.com/u/Dadagu)\
**Post date:** [January 24, 2011, 5:23pm UTC](https://forum.kirupa.com/t/flash-game-character-animation-as3/318585/1 "2011-01-24T17:23:11Z")

</div>

I have a character with different animations set up for jumping, walking and standing.

I have set it up so that when pressing the up arrow I gotoAndStop at the jumping animation, pressing the left or right arrows goes to the walking animation and when nothing is pressed I get the standing animation. The problem arises when I press both up and left/right buttons at once. Then the jump animation sticks and doesn’t cancel until I let go of both…even when the character isn’t actually jumping!

I am using Flash CS3.

Any help?
