suger 0 Newbie Poster

Hi guys
Can anyone show me some pieces of pseudo code to show how to drag the shape to move to anywhere when the mouse is released?
Thanks heaps