Tracing a line

Hey everyone, another question from me, sorry!

I was wondering if anyone could give me some pointers. I am trying to create a script which will move a movie clip along a line, kind of like a volume control slider, except the line could potentially have curves and the like. I would like the movieclip to sit above the line, and rotate according to the lines curvature. So if the movieclip was an arrow, as it traces the line the arrow will always trace the line and not just permanently point downwards.

Any ideas how I can achieve this because I am clueless :frowning: