Ver Mensaje Individual
  #5 (permalink)  
Antiguo 20/04/2007, 20:54
Rizzo
 
Fecha de Ingreso: septiembre-2006
Mensajes: 1.193
Antigüedad: 17 años, 6 meses
Puntos: 30
Re: GetHours y cargar

te falta comprobar la hora eso lo puedes hacer con setInterval prueba esto comprueba el segundo 1 y 2 y hace un trace.(busca en la ayuda de flash para que sirve setInteval)
Código:
segundos = function () {
	var myDate = new Date();
	get_segundos = myDate.getSeconds();
	trace(get_segundos+" Segundos");
	if (get_segundos == 1) {
		trace("Un"+" Segundo");
	}
	if (get_segundos == 2) {
		trace("dos"+" Segundos");
	}
};
id = setInterval(segundos, 1000);