If you're confused about the distance expression..
another way of doing it is:
sqrt(sprite.Physics.VelocityX^2)+(sprite.physics.VelocityY^2)
because it's basically that.. maths thing.. you know.. working out the long side of a triangle and sh*t. yeah.
I don't think most people would have thought about using the distance expression... but hey it all works.