The circle will stick to the line

i hav a line and a circle.
i want wherever i drag the line,the circle which is on the line will follow it.
How can i do that?
please drop me an example or actionscript…

would something like: = _root.line._x+10; = _root.line._y+10;
work for you?

i not able 2 achieve that…
here is my attachment…please help me

Something like this?

but if i want move my line upwards…the circle will slowly and slighty move to the right?

you just need to change the x and y coordinates