Movie clip rotation

hi is there anyone who can help me with movieclips and rotation?

i have this problem of rotating a movieclip abt its center point.

first i create a empty movie clip(control_mc) and after which a attach a line mc and set its x and y according to user’s click then i add 2 vertex mc to the empty clip which’s x and y is also accoording to the user’s click. and if i click on the line mc, i need to rotate the control_mc acording to the line_mc’s center. is there a way to do it?