Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/04/2010, 07:34
Avatar de Kottore
Kottore
 
Fecha de Ingreso: octubre-2007
Mensajes: 170
Antigüedad: 16 años, 6 meses
Puntos: 8
Respuesta: porque setInterval no me funciona con un condicional?

Prueba poniendo definiendo la función fuera del if. Algo así:

Código ActionScript:
Ver original
  1. function tiempo(){ 
  2.     trace("hola,ya paso el tiempo");
  3.     clearInterval(variable);
  4. }
  5. if (_root._currentframe==1){
  6.     var variable=setInterval(tiempo,5000);
  7. }

Saludos ^_^
__________________
これは僕のウェブだよね。