
Код AS1/AS2:
mc.onMouseMove = function() {
x = this._x-_xmouse;
y = this._y-_ymouse;
dist1 = Math.sqrt((x*x+y*y));
if (dist1<dist) {
this._xscale += 1;
this._yscale += 1;
} else if (dist1>dist) {
this._xscale -= 1;
this._yscale -= 1;
}
dist = dist1;
};