Doubt using Lineto()

hi
this is prasanth

i hav a doubt in flash action script

say i hav 2 movieclip A , B ,C,D(placed as 2X2 matrix )
(similar to match the following)

when i click movieClip(mc)A and then drag it to Mc B
i need to get a line from A to B
similarily
if i try from C to D also it has to work

please somebody help me out

regards
prasanth