Find highest point and farthest point of a parabola

Hi Guys, I’ve been using for forum extensively over the past few weeks and have found almost everything I needed until now…

I’m moving a ball using something similar to the following code:


var spx:Number = 3;
var spy:Number = 7;
var g:Number = 0.1;
var bmove:Boolean = true;

onEnterFrame = function() {
    if (bmove) {
        move_ball();
    }
    stop_ball();
}

function stop_ball() {
    if (ball._y > 350) {
        bmove = false;
    }
}

function move_ball() {
        spy = spy-g;
        ball._x += spx;
        ball._y -= spy-g;
}

Is there a way to find the maximum height and farthest point of the parabola it describes? I want to display a path guide using curveTo which shows the route of the ball.

Thanks.