Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/05/2002, 11:53
Avatar de Potro
Potro
 
Fecha de Ingreso: abril-2001
Mensajes: 2.249
Antigüedad: 23 años
Puntos: 39
Re: Poner la hora

Pues aquí te explico como hacerle para la hora y el día...

Tienes que hacer un mc y en las acciones del mc le pones..


onClipEvent (load) {
days = new Array('Sunday','Monday','Tuesday','Wednesday','thu rsday','Friday','Saturday','Sunday');
months = new Array('January','February','march','April','May',' June','July','August','September','October','Novem ber','December');
timedate = new Date();
}
onClipEvent (enterFrame) {
hour = (timedate.getHours());
minutes = timedate.getMinutes();
seconds = timedate.getSeconds();
todaydate = timedate.getDate();
day = timedate.getDay();
dayname = days[day];
month = (timedate.getMonth()+1);
monthname = months[month-1];
year = timedate.getFullYear();
if (Length(minutes)==1) {
minutes = "0" + minutes;
}
if (Length(seconds)==1) {
seconds = "0" + seconds;
}
currenttime = hour + ":" + minutes + ":" + seconds;
currentdate = todaydate + "/" + month + "/" + year;
fulldate = dayname + " " + todaydate + " " + monthname + " " + year;
delete timedate;
timedate = new Date();
}

dentro del mc tienes que poner dos dynamic text uno con la variable de currentdate y el otro con la variable de currenttime

y asi tendras hora y fecha ...

si no le entendiste escribeme a [email protected]

<div align=center>
<param name=movie value=http://www.compuviper.com/montejo/firma.swf>
<param name=quality value=high><embed src=http://www.guerrerohermida.com.mx/firma.swf WIDTH=200 HEIGHT=75>
</embed></div>