Comunidad de diseño web y desarrollo en internet online

Hora del Sistema....

Citar            
MensajeEscrito el 10 Nov 2005 01:55 am
Saludos, en otro foro escribí si podían ayudar para colocar la hora del sistema en una aplicación flash, pero con el codigo que me dieron la hora queda estática y necesito saber si se puede colocar un reloj dinamico, que cambie la hora normalmente, Si alguien me puede ayudar con esto se lo agradezco.....

Gracias por todo...

:music:

Por Blackdragon

Claber

3776 de clabLevel

24 tutoriales

Genero:Masculino   Premio_Secretos Héroes

In one of the pits of hell, fighting for my soul

opera
Citar            
MensajeEscrito el 10 Nov 2005 02:13 am

Código :

this.createTextField("horatxt", this.getNextHighestDepth(), 10,10, 0, 20);
horatxt.autoSize = "left";
intervalo = setInterval ( dameHora = function (){
                     var fecha:Date = new Date();
                     h = fecha.getHours();
                     m = fecha.getMinutes();
                     s = fecha.getSeconds();
                     (m<10)?minutos= "0"+m:minutos= m;
                     (s<10)?segundos= "0"+s:segundos = s;
                     (h<10)?hora= "0"+h:hora= h;
                     horatxt.text = hora+":"+minutos+":"+segundos;
                   }, 1000);

stop();


copia y pega :P

saludos

Por Maikel

BOFH

5575 de clabLevel

22 tutoriales
5 articulos

Genero:Masculino   Team Cristalab

Claber de baja indefinida

firefox
Citar            
MensajeEscrito el 10 Nov 2005 02:39 am
Gracias Maikel por tu respuesta y por el codigo el cual resolvió el problema que tenía.... Gracias de nuevo....

^^

Por Blackdragon

Claber

3776 de clabLevel

24 tutoriales

Genero:Masculino   Premio_Secretos Héroes

In one of the pits of hell, fighting for my soul

opera

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.