io voglio realizzare che la clip si sposti orizzontalmente, verso il mouse con moto smorzato utilizzo questo script sul primo fotogramma ma non funziona:
stop();
xpos = getProperty(apemovin.ape, _x);
ypos = getProperty(apemovin.ape, _y);
speed = 5;
apemovin.ape.onEnterFrame = Function();
if (apemovin.ape_x<_root.xm-20) {
apemovin.ape._x += (_root.xm-_root.xpos)/speed;
} else if (ape._x >_root.xm+ 20) {
apemovin.ape._x -= (_root.xm-_root.xpos)/speed;
} else {
delete apemovin.ape.onEnterFrame;
}

(xm è _xmouse all'interno della clip apemovin, la setto in una clip di controllo:
onClipEvent (enterFrame) {
_root.xm = _root.apemovin._xmouse;
_root.ym = _root.apemovin._ymouse;
_root.dist = int(_root.xm -_root.xpos);
}

miaiutate a correggerlo??