Node timerLoop

public function init():void

{

for(var i:int = 1;i<6;i++)
{
var sp:Sprite = new Sprite();
sp.timerOnce(i*500,sp,function(s:Sprite)
{
s.timerLoop(50,s,doIt,[s])
},[sp]);

sp.graphics.drawCircle(0, 0, 15, “#00ffff”);
sp.y = 70*i;
stage.addChild(sp);
}

}
public function doIt(s:Sprite):void
{
s.x += 5;
if(s.x>300)
{
s.x = 0;
s.clearTimer(this,arguments.callee);
}

}