<?xml version="1.0" encoding="iso-8859-1"?><rss version="2.0">
<channel><title><![CDATA[ActionScript.org Flash, Flex and ActionScript Resources - Comments for article: Orbiting in AS2]]></title><link>http://www.actionscript.org/resources</link><description /><language>en-us</language><copyright><![CDATA[http://www.actionscript.org/resources]]></copyright><generator>N/A</generator><webMaster>general.redirect@gmail.com</webMaster><lastBuildDate>Tue, 21 May 2013 16:20:35 CDT</lastBuildDate><ttl>20</ttl><item><title><![CDATA[Comment #1]]></title><link>http://www.actionscript.org/resources/articles/863/1/Orbiting-in-AS2/Page1.html#Comment12640</link><description><![CDATA[Really cool science here. I believe most orbits are elliptical by nature. If you want to make the orbits elliptical (instead of circular), that's easy to do by adjusting the multiplier for xDistance or yDistance. If you want to be even more accurate with elliptical orbits, you can make the satellite orbit around one of the focus point of the ellipse (instead of the center). An example of this can be found here:
http://homepage.mac.com/sailing/Elliptical_Orbit.fla<br/><br/>
(Comment posted by bry at 1:22 pm, Thu 12th Feb 2009)]]></description><author>no@spam.com (bry)</author><pubDate><![CDATA[Thu, 12 Feb 2009 13:22:03 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/863/1/Orbiting-in-AS2/Page1.html#Comment12640</guid></item><item><title><![CDATA[Comment #2]]></title><link>http://www.actionscript.org/resources/articles/863/1/Orbiting-in-AS2/Page1.html#Comment12655</link><description><![CDATA[Nice explanation of the math.

it would be easier to read it you put   ;   after each line of code

onClipEvent(load){
    angle=0;//degrees
    mainDistance=100;//pixels
}
onClipEvent(enterFrame){
    angle+=5;
    xDistance=Math.sin(angle * Math.PI/180)*mainDistance;
    yDistance=Math.cos(angle * Math.PI/180)*mainDistance;
    xDisCalculated=_root.center._x-xDistance;
    yDisCalculated=_root.center._y-yDistance;
    this._x=xDisCalculated;
    this._y=yDisCalculated;
}<br/><br/>
(Comment posted by Anthony Pace at 12:55 pm, Tue 17th Feb 2009)]]></description><author>no@spam.com (Anthony Pace)</author><pubDate><![CDATA[Tue, 17 Feb 2009 12:55:37 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/863/1/Orbiting-in-AS2/Page1.html#Comment12655</guid></item><item><title><![CDATA[Comment #3]]></title><link>http://www.actionscript.org/resources/articles/863/1/Orbiting-in-AS2/Page1.html#Comment12709</link><description><![CDATA[hi, first off, very good tut, but I have a question
I made something similar to yours, but added colors etc.
But now I want to make bob rotate similar to the path...

Can you help me?
my email is : pieter.schatteman@hotmail.com

grtz<br/><br/>
(Comment posted by pieter schatteman at 4:10 am, Mon 2nd Mar 2009)]]></description><author>no@spam.com (pieter schatteman)</author><pubDate><![CDATA[Mon, 02 Mar 2009 04:10:55 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/863/1/Orbiting-in-AS2/Page1.html#Comment12709</guid></item><item><title><![CDATA[Comment #4 (Reply to Comment #3)]]></title><link>http://www.actionscript.org/resources/articles/863/1/Orbiting-in-AS2/Page1.html#Comment12796</link><description><![CDATA[Pieter, all you would need to do is make one side of bob face the center, you can do this by inserting this code on bob.
yPos=this._y-_root.center._y;
xPos=this._x-_root.center._x;
angle2=Math.atan2(yPos, xPos)/(Math.PI/180);
this._rotation=angle2;

if bob isn't facing the way you want, just edit bob and rotate him a bit, or just add to angle 2 on the this._rotation=angle2; line.
That should help.<br/><br/>
(Comment posted by Andy Crockett at 7:35 pm, Mon 23rd Mar 2009)]]></description><author>no@spam.com (Andy Crockett)</author><pubDate><![CDATA[Mon, 23 Mar 2009 19:35:02 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/863/1/Orbiting-in-AS2/Page1.html#Comment12796</guid></item><item><title><![CDATA[Comment #5]]></title><link>http://www.actionscript.org/resources/articles/863/1/Orbiting-in-AS2/Page1.html#Comment13110</link><description><![CDATA[I tried this, first typing out the code, and when that didn't work, cut and pasted the code. My mc's just sit there, no movement. I'm in Flash CS4 and AS2. And the code is on the mc, not on a frame. It's just not working!<br/><br/>
(Comment posted by Gerry at 8:51 am, Fri 12th Jun 2009)]]></description><author>no@spam.com (Gerry)</author><pubDate><![CDATA[Fri, 12 Jun 2009 08:51:11 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/863/1/Orbiting-in-AS2/Page1.html#Comment13110</guid></item><item><title><![CDATA[Comment #6]]></title><link>http://www.actionscript.org/resources/articles/863/1/Orbiting-in-AS2/Page1.html#Comment13111</link><description><![CDATA[Cancel that last comment. named the first "center_mc" instead of "center". got it now.<br/><br/>
(Comment posted by Gerry at 8:57 am, Fri 12th Jun 2009)]]></description><author>no@spam.com (Gerry)</author><pubDate><![CDATA[Fri, 12 Jun 2009 08:57:13 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/863/1/Orbiting-in-AS2/Page1.html#Comment13111</guid></item><item><title><![CDATA[Comment #7]]></title><link>http://www.actionscript.org/resources/articles/863/1/Orbiting-in-AS2/Page1.html#Comment13239</link><description><![CDATA[now nest this 5 levels deep and you have something worth looking at :D<br/><br/>
(Comment posted by DesertedKeep at 8:16 am, Wed 15th Jul 2009)]]></description><author>no@spam.com (DesertedKeep)</author><pubDate><![CDATA[Wed, 15 Jul 2009 08:16:29 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/863/1/Orbiting-in-AS2/Page1.html#Comment13239</guid></item><item><title><![CDATA[Comment #8]]></title><link>http://www.actionscript.org/resources/articles/863/1/Orbiting-in-AS2/Page1.html#Comment13451</link><description><![CDATA[This is great!
And I also tried to make the orbit.I'm doing my master thesis.
But I require to draw wave with action script using dynamic texts.
And I also need to read the files with binary format from flash to simulate the communication between satellite and its terminals.
As far as I knew,I don't have enough Math function.Where do I need.(like integrate,differentiate, cos(a)sin(b))
Please reply this if you can think a way.
Thanks a lot..<br/><br/>
(Comment posted by ktrrzn at 11:48 pm, Tue 8th Sep 2009)]]></description><author>no@spam.com (ktrrzn)</author><pubDate><![CDATA[Tue, 08 Sep 2009 23:48:05 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/863/1/Orbiting-in-AS2/Page1.html#Comment13451</guid></item><item><title><![CDATA[Comment #9]]></title><link>http://www.actionscript.org/resources/articles/863/1/Orbiting-in-AS2/Page1.html#Comment16099</link><description><![CDATA[Can you show me how to make an angled orbit? Please. Thank you. Overall, this tutorial is great. thx.<br/><br/>
(Comment posted by 11vandev at 7:18 am, Tue 10th May 2011)]]></description><author>no@spam.com (11vandev)</author><pubDate><![CDATA[Tue, 10 May 2011 07:18:43 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/863/1/Orbiting-in-AS2/Page1.html#Comment16099</guid></item></channel></rss>