i don't know which version of Actionscript your using but here's how to do that with as2.

Actionscript Code:
onEnterFrame = function() {
movieclipName._x = _xmouse;
movieclipName._y = _ymouse;
}