Track mouse/curser in actionscript 3 help

I have some actionscript 2 code I use to reposition a hover caption when the
mouse/curser gets close to the bottom of the stage.

But I am not sure how to do the same thing in actionscript 3.
Thanks for any help.

if (_ymouse > 350) {

xo = 0;
yo = -110;

} else {

xo = 0;
yo = 0;

}

hoverCaption.onEnterFrame = function() {
info._x = _root._xmouse+xo;
info._y = _root._ymouse+yo;

info._visible = true;

};

} else {

delete hoverCaption.onEnterFrame;
info._visible = false;

}