This is a bit of a broad and complex question. It sounds to me that you're not quite going the right way about applying physics to your game. Here are some concepts that I would look into:
- Update your game every frame if you're not already
addEventListener(Event.ENTER_FRAME, frame);
- Gravity should be a constant acceleration and always have an effect on your character.
const GRAVITY:Number = 9.8; // or whatever value
- You should check for collisions between your character and the ground. When they collide you set the position of the character to that of the ground (so he doesn't fall through).
- When the character jumps, you could set the starting velocity. On your
ENTER_FRAME
event gravity should be applied to that velocity so that your character gradually slows down and then starts to fall. - Look into the SUVAT maths equations for simple ways to calculate motion. link
If you want physics, collision detection, etc without having to program them yourself then this is a popular choice.