var my_timedProcess:Number = setTimeout(my_delayedFunction, 4000); var i:int = 0; function my_delayedFunction() { _root.fondo=imagen(i%5); i ++; setTimeout(my_delayedFunction, 4000); }