Help! jelly_image effect integration

hi there,
this is my first post

i’m trying to adopt a piece of code for some time, without any result.
it’S a kind of jelly picture effect.

the code is working when elements being on main timeline, but i need to convert it into a movie clip (need to scale it).
that’S when trouble starts. i changed the path from _root to _parent, but then somehow the mousetracker fail to initialise.
As a result the image is not being able to stop scaling either left or right.

It could be a rather simple solution, but i’m afraid not in reach of my hands.
would be greatful for some fresh ideas

details:

image is split into two mcs: mc1 and mc2

on the main timeline there are

a) an empty clip with following script

onClipEvent (enterFrame) {
spring = .7;
damp = .2;
this.vx += (_root.tracker._x-this._x)*spring;
this.vx *= damp;
this._x += this.vx;

this._x = this._x - _xmouse/50;
_root.mc1._width = this._x-_root.mc1._x;
_root.mc2._width = _root.mc2._x-this._x;

}

b) a mouse tracker right in the middle between two mc’s

1stframe
x = _x;
y = _y;
Radius = 1000;

2ndframe
x1=_x
y1=_y
x2=_root._xmouse
y2=_root._ymouse
a=x2-x1
b=y2-y1
r=Math.sqrt(aa+bb)
escape_x=this._x-(a/r)*Radius/r
escape_y=this._y-(b/r)*Radius/r
turn_x=(x-x1)/2
turn_y=(y-y1)/2

3rdframe
gotoAndPlay(2);

c) two mcs

THANKS! vals