Pointer to mouse on timeline

Normally when u wan movie clip to following mouse was to have the following code which was put inside the movie clip itself

onClipEvent(enterFrame){
_x = _root._xmouse;
_y = _root._ymouse;
}

BUT…wat happen if we wan to write the script on the main timeline and let the movieclip to follow the mouse…what should the code be?
thx for reading