Yes is another walking problem. I AM A NEWB AT AS

thanks to anyone that is reading this.

ok this is what i have so far:

-mc called “jump”-dont know yet how many frames will be
-mc called “stand”-3 frames long
-mc called “walk”-24 frames long
-mc called “shooting”-10 frames long (dont know how many frames will be yet but lets assume)

now my question WHAT IS THE ACTION SCRIPT TO MAKE THIS THING WORK WELL. i have tried but the problem is that when i release the “right” or “left” key the “walk” mc keeps playing until it reaches the end.

and i swear I WILL make a tutorial about this cuse there isn’t really one that just teaches you just that. no hitTest no scrolling no nothing just how to make your hero in the game walk left right jump and shoot.
so please help me so i can help others also thanks a lot.

if you need any more information to help me out please let me know i have tried the little i know to get it to work and have come back with nothing.

I did it in my game by setting a flag for crouching:

if (Key.isDown(Key.RIGHT)) {
_root.char.faceright = true;
} else if (Key.isDown(Key.LEFT)) {
_root.char.faceright = false;
// after all the other key checks
if (_root.char.faceright) { // this is for a character that faces right by default.
_root.char._xscale = 100
} else {
_root.char._xscale = -100

thanks for the code man but your coding is really long and you are using 8 lines of coding for that.
and i found a way to do it with just 3 lines of code. but thanks a lot though

onClipEvent(EnterFrame) {
if (Key.isDown(Key.DOWN)) {
// goto the walking animation

by the way wat type of game are you making?