Create 2 instance variables called grabX and grabY
On touch (or click):
set grabX to sprite.X-touch.X
set grabY to sprite.Y-touch.Y
Every tick (if being dragged):
Set the position to Touch.X+Sprite.grabX,Touch.Y+Sprite.grabY
Good luck <img src="smileys/smiley2.gif" border="0" align="middle">
PS: see my earlier created example here.