Hey dude. You have a few conflicting lines there, you want bob to go to frame 3 when you press right, but before that you say "if jumping is true then bob, go to frame 2 dammit, otherwise go to frame 1". So because you are constantly telling it to go to frame 1 and 3, it just screws up; so try this.
//
//__________________bob VARIABLES__________________
var bobStatus:String = "standing";
var xSpeed:Number = 5;
//
onEnterFrame = function () {
//_______________bob CONTROLS___________________
if (_root.bob.kick._currentframe == 18 || _root.bob.kick._currentframe == 1) {
_root.bobStatus = "standing";
}
if (Key.isDown(Key.SPACE)) {
_root.bobStatus = "jumping";
}
if (Key.isDown(Key.RIGHT)) {
_root.bobStatus = "walking";
_root.bob._x += _root.xSpeed;
_root.bob.gotoAndStop(3);
}
if (Key.isDown(Key.LEFT)) {
_root.bobStatus = "walking";
_root.bob._x -= _root.xSpeed;
_root.bob.gotoAndStop(3);
}
if (_root.bobStatus == "walking" && !Key.isDown(Key.LEFT) || _root.bobStatus == "walking" && !Key.isDown(Key.RIGHT)) {
_root.bobStatus = "standing";
_root.bob.gotoAndStop(1);
}
//
//______________GRAVITY______________________
___
if (_root.bobStatus == "jumping") {
_root.bob.gotoAndStop(2);
}
if (_root.bob.hitTest(_root.ground)) {
// if your bob is touching the ground
_root.bobStatus = "standing";
_root.bob.gotoAndStop(1);
}
};
Also fixed a few things like, _currentFrame should be _currentframe, using labels to mark segments of code is a MUST, man. Otherwise you lose sight of where stuff is later on when you have a thousand lines of code.
I also altered the numbers you were using for bob's _x increments. Instead of minusing a negative number to go right, just plus a positive one. Also, if you make a speed variable instead of using an exact number, it means you can alter his speed by altering the speed variable. Its as easy as _root.speed = 10, and voila bob is running.
Also, just a word of advice, I find that using onLoad on the main timeline only causes problems, the code works the same if you just remove it and its brackets like I did above.
Hope that helped.