/ Published in: ActionScript 3
Full credit for this goes to Terrence Ryan who converted the JavaScript version to ActionScript.
URL: http://www.terrenceryan.com/blog/post.cfm/getting-the-distance-between-two-points-using-actionscript
URL: http://www.terrenceryan.com/blog/post.cfm/getting-the-distance-between-two-points-using-actionscript