# Elliptical trajectory / motion in as 2.0?

**URL:** <https://forum.kirupa.com/t/elliptical-trajectory-motion-in-as-2-0/256875>\
**Category:** flash\
**Created:** [April 8, 2008, 11:12am UTC](https://forum.kirupa.com/t/elliptical-trajectory-motion-in-as-2-0/256875 "2008-04-08T11:12:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rapier\_gv](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@rapier\_gv](https://forum.kirupa.com/u/rapier_gv)\
**Post date:** [April 8, 2008, 11:12am UTC](https://forum.kirupa.com/t/elliptical-trajectory-motion-in-as-2-0/256875/1 "2008-04-08T11:12:44Z")

</div>

Hey guys, first of all, sorry if this was asked before, i did use the search option first (glanced a bit) and didn’t find something related quick so decided to ask:

Does anyone know the correct way for creating an elliptical motion in flash 8? I googled for ellipse equations and stumbled upon these:

> **[Ellipse](https://en.wikipedia.org/wiki/Ellipse)**
>
> In mathematics, an ellipse is a curve in a plane surrounding two focal points such that the sum of the distances to the two focal points is constant for every point on the curve. As such, it is a generalization of a circle, which is a special type of an ellipse having both focal points at the same location. The shape of an ellipse (how "elongated" it is) is represented by its eccentricity, which for an ellipse can be any number from 0 (the limiting case of a circle) to arbitrarily close to but le...

Lower on the page there’s also some code (javascript) which generates points that can then be connected to form an ellipse. tried to replicate that in flash, but haven’t succeeded. Also, i was wondering if there was another way i could generate an ellipse, which looks more like this [http://www.rsc.org/ej/JM/2000/b002092n/b002092n-f4.gif](http://www.rsc.org/ej/JM/2000/b002092n/b002092n-f4.gif), in the sense that it’s “tilted”.

I am trying to replicate a sort of solar system, but with elliptical trajectories, and would have liked to have the sun in an upper corner and the planets rotating around it in a sort of “tilted” ellipse.

I also tried to modify the Circular Movement tut also [http://www.kirupa.com/developer/mx/circular.htm](http://www.kirupa.com/developer/mx/circular.htm).

Sorry if the question is dumb or already answered in a previous post. Thanks in advance!
