hola, esto te ha de servir:
Código PHP:
tool_mc.onEnterFrame = function() {
diffY = (_ymouse<=300) ? (300-_ymouse)/6 : -(_ymouse-300)/6;
diffX = (_xmouse<=400) ? (400-_xmouse)/2 : -(_xmouse-400)/2;
this._x = _xmouse+diffX;
this._y = _ymouse+diffY;
};
Salu2!