if have a prototype like this
MovieClip.prototype.moveToXY = function(xPos, yPos) {
this.onEnterFrame = function() {
difx = xPos-this._x;
dify = yPos-this._y;
if (Math.abs(difx)>1 || Math.abs(dify)>1) {
this._x += difx/5;
this._y += dify/5;
} else {
this._x = xPos;
this._y = yPos;
delete this.onEnterFrame;
// ready
}
};
};
can i track that “ready” state with listener? -> when the object has moved to new place x,y -> other function should start…
because i’ll use that prototype with many mc:s i can’t call the function in that prototype!
so, can somebody help me?