# Find highest point and farthest point of a parabola

**URL:** <https://forum.kirupa.com/t/find-highest-point-and-farthest-point-of-a-parabola/273516>\
**Category:** flash\
**Created:** [October 16, 2008, 11:01am UTC](https://forum.kirupa.com/t/find-highest-point-and-farthest-point-of-a-parabola/273516 "2008-10-16T11:01:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mossoi](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mossoi](https://forum.kirupa.com/u/Mossoi)\
**Post date:** [October 16, 2008, 11:01am UTC](https://forum.kirupa.com/t/find-highest-point-and-farthest-point-of-a-parabola/273516/1 "2008-10-16T11:01:43Z")

</div>

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:

```auto

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.
