title: FLash AS3 - How to express difference between two xy coords as a number between 0 and 1?
body: <p>I've created a movieclip spawner class and animator class which animate movieclips along a set of x,y points. I've used Greensock's TweenMax to accomplish the animation and I have set the speed to be 1 second between each point. The issue is that when the distance between two points is small it looks too slow.</p>
  
  <p>What I would like to do is somehow calculate the distance between the two points and output a speed in the range of 0 to 1 seconds so that the speed is to be correct for the shorter distances as well as the longer distances.</p>
  
  <p>Any help or advice would be greatly appreciated.</p>
  
  <p>Thankyou,</p>
  
  <p>eb_dev </p>