Follow mouse: freezed movement

hello !
I tried to make a mc that follow my cursor according to a button but the movement is “freezing” don’t know to what it is due here’s the actionscript i used
[AS]
tarX = m._x;
tarW = m._width;
m.onEnterFrame = function() {
this._x = tarX-(tarX-this._x)/1.2;
this._width = tarW-(tarW-this._width)/1.2;
};
facilites.onRollOver = function() {
tarX = this._x;
tarW = this._width;
}
fictions.onRollOver = function() {
tarX = this._x;
tarW = this._width;
}
docus.onRollOver = function() {
tarX = this._x;
tarW = this._width;
}
indus.onRollOver = function() {
tarX = this._x;
tarW = this._width;
}[/AS]
Maybe someone konw this script, i found it on the forum and cut some lines i didn’t need ! :whistle: