Mario Game Help

I’m making a Mario game. Ok now that thats outta the way. I don’t know how to make him jump. I had gotten it to where when I pushed the button, the frame changed and he went up like he was jumping, but i can’t get the frame to change to where he’s falling back down and well, I can’t make him fall back down…also I’m haveing issues with the crouching and jumping buttons…I can’t get it to work while i’m not walking and have it crouch or jump in the direction he’s facing… here’s the coding I have.

this is all in a movieclip called “remote”

onClipEvent (enterFrame) {
mario = new Object();
Key.addListener(mario);
with (_root.mario) {
if (Key.isDown(Key.RIGHT)) {
_x += 7;
}
if (Key.isDown(Key.LEFT) && Key.isDown(Key.DOWN)) {
_x +=7;
}
if (Key.isDown(Key.LEFT)) {
_x -= 7;
}
if (Key.isDown(Key.RIGHT) && Key.isDown(Key.DOWN)) {
_x -= 7;
}
mario.onKeyDown = function() {
pose = “0”;
pose2 = “0”;
pose3 = “0”;
if (Key.isDown(Key.RIGHT)) {
pose = “1”;
pose2 = “8”;
pose3 = “6”;
gotoAndStop(3);
}
if (Key.isDown(Key.LEFT)) {
pose = “2”;
pose2 = “9”;
pose3 = “7”;
gotoAndStop(4);
}
if (Key.isDown(Key.DOWN)) {
gotoAndStop(pose2);
} else if (Key.isDown(Key.SHIFT)) {
gotoAndStop(pose3);
}
};
mario.onKeyUp = function() {
gotoAndStop(pose);
if (Key.isDown(Key.DOWN)) {
gotoAndStop(pose2);
} else if (Key.isDown(Key.SHIFT)) {
gotoAndStop(pose3);
}
};
}
}

any help would be appreciated. thanks

Here’s the fla

http://scarce.250free.com/mario.zip

k, well if no one will help me on this…can someone at LEAST link me to a tutorial on 2d side scroller games?

I always thought this place was to seek help from others dealing with flash situations…I guess I was wrong…2 weeks this and 30 something views this has been up and not one person has said anything…thanks for nothing.

A) Wrong forum - Game/AI Programming would be much more appropriate.
B) People hate reading code that isn’t in [AS][/AS]. Many people entered the thread, saw the unformatted code and left without looking back.
C) You asked like 4 questions at once, all (most) of which you could find by doing some searches here and/or at google. simple side scrolling game stuff has been covered so many times, and if not in the exact context of a game, the theory has been.

I don’t mean to be an *****hole, but those are just some tips to making posts that people will respond to.