Can you make Flash calculate distance?
I want Flash to measure the distance between a movie clip “ball” and a mouseDown action. So that the greater the distance, the faster the ball with travel. Then after the ball has passed the spot where I clicked, the ball with naturally slow down, but will do so in reference to how fast the ball was moving, in turn in reference to the distance between the movie clip and the mouse click. I know the code for everything but calculating the distance between the movie clip and click, and returning that distance to effect the speed.
Can anyone help? That would be much appreciated.