I use the letsMove function to move movieclips
MovieClip.prototype.letsMove = function(time, step, limit) {
countHundred = function (clip) {
clip._x += step;
updateAfterEvent();
if (distance>=limit) {
clearInterval(move);
}
distance += step;
};
var move = setInterval(countHundred, time, this);
};
mc1.letsMove(1, .05, 100);
How can I use another setInterval function so, when the movieclip reaches the limit (in this case 100 pixels), it stops, waits for 1 second and starts the letsMove function again?
Thanks