Ну вот. Здесь 1 шарик 10 раз начинает бежать из случайной точки по 10 шагов в каждом забеге.
Но, я то о том, что он бегает, понимаю только из trace.
Как задать время одного шага в цикле?

Код AS3:
var animateTimer:Timer = new Timer(1000,10);
var redDot:RedDot = new RedDot();
addChild(redDot);
animateTimer.addEventListener(TimerEvent.TIMER, moveDot);
animateTimer.start();
function moveDot(e:TimerEvent): void {
redDot.x = Math.random()*stage.stageWidth;
redDot.y = Math.random()*stage.stageHeight;
var slopeX = Math.random()*10-5;
var slopeY = Math.random()*10-5;
for (var i:Number=0; i<10; i++) {
redDot.x += slopeX;
redDot.y += slopeY;
trace(animateTimer.currentCount);
trace(redDot.x);
}
}