Ver Mensaje Individual
  #6 (permalink)  
Antiguo 24/12/2006, 10:00
Avatar de d12c12g88
d12c12g88
 
Fecha de Ingreso: diciembre-2006
Mensajes: 142
Antigüedad: 17 años, 4 meses
Puntos: 1
Re: _alpha en clip con la hora

Rizzo

probe el AC ke me diste y no me funciono, le agregue la accion ke keria y no funciono,
mira este es el AC ke uso para el reloj:
Código:
stop();
var dias = new Array("Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado");
var meses = new Array("enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre");
reloj.onEnterFrame = function ()
{
    var fecha = new Date();
    this.fecha = dias[fecha.getDay()] + ", " + fecha.getDate() + " de " + meses[fecha.getMonth()] + " de " + fecha.getFullYear();
    this.hora = fecha.getHours();
    this.minuto = fecha.getMinutes();
    this.segundo = fecha.getSeconds();
    if (this.segundo < 10)
    {
        this.segundo = "0" + this.segundo;
    } // end if
    if (this.minuto < 10)
    {
        this.minuto = "0" + this.minuto;
    } // end if
    if (this.hora < 10)
    {
        this.hora = "0" + this.hora;
    } // end if
};
lo ke kiero es ke el dia se obscuresca segun la hora,
pero lo estube probando con los segundos para no tener ke estar esperando todo el dias para ver si funciono, asi ke lo probe con los segundos.
pero lo raro es ke si me funciono con un boton:

Código:
on (release){
_root.clip._alpha = segundo;
}
cuando preciono el boton si me funciona, el problema es ke no kiero ke le tengan ke picar al boton.

si me podrian ayudar, les agradeceria mucho.

como kiera muchas gracias Rizzo