PDA

View Full Version : [MX]How to calculate distance for draggable content



dboers
June 10th, 2004, 04:31 AM
How do you calculate the distance for a movieclip that you ant to drag in relation to the stage

Zakalwe
June 10th, 2004, 04:43 AM
With pythagoras.


I can't explain it really, so take a look at the .fla. :)

(it's an old experiment I found on my pc... I have there two draggable mc's and it shows the distance between them)

dboers
June 10th, 2004, 04:59 AM
That's very clear :) Thank you very much :thumb: