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…
thankx

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

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

Something like this?

yes!!!thanku…
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