X = []; Y = []; _root.onEnterFrame = function() { X.push(_xmouse); Y.push(_ymouse); if (X.length>100) { X.shift(); Y.shift(); } L._x=X[0]; L._y=Y[0]; };