Tema: bucle
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/01/2011, 12:45
Avatar de stramin
stramin
 
Fecha de Ingreso: marzo-2008
Ubicación: Cubil felino
Mensajes: 1.652
Antigüedad: 16 años, 1 mes
Puntos: 336
Respuesta: bucle

Faltaría repetir la llamada cada 4 segundos:

Código JActionscript:
Ver original
  1. var my_timedProcess:Number = setTimeout(my_delayedFunction, 4000);
  2.  
  3. function my_delayedFunction() {
  4.     _root.fondo= random(4);
  5.     setTimeout(my_delayedFunction, 4000);
  6. }