dx:Number = obj1.x - obj2.x; dy:Number = obj1.y - obj2.y; distance:Number = Math.sqrt(dx * dx + dy * dy);
On Tue, Mar 11, 2008 at 8:05 AM, Lehr, Theodore M (N-SGIS) < [EMAIL PROTECTED]> wrote: > How do you calculate the distance between two points with different x > and y values? I know it is some simple math formula - I just don't know > it.... > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- Anthony Cintron Flash || Flash Developer www.sweetiesandgangsters.com [EMAIL PROTECTED] _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

