Tema: scroll flash
Ver Mensaje Individual
  #7 (permalink)  
Antiguo 23/04/2007, 02:24
Avatar de PedroRodas
PedroRodas
 
Fecha de Ingreso: noviembre-2005
Ubicación: Cádiz
Mensajes: 393
Antigüedad: 18 años, 5 meses
Puntos: 0
Re: scroll flash

funciona de lujo pero me ha surgido un problemilla. Pienso que esta relacionado con el hecho de meter el enterFreame en una funcion que termina cuando llega al punto final del movimiento.
Este es mi codigo:
on (rollOver)
{
_root.arriba.enabled = true;
this.onEnterFrame = function()
{
_root.texto._y -= 3;
if (_root.texto._y<=-950)
{
delete this.onEnterFrame;
this.enabled = false;
}
};
this.colorTo(0xFF0000,2.5,"easeOutSine");
}
on (rollOut)
{
delete this.onEnterFrame;
this.colorTo(0x0000FF,2.5,"easeOutSine");
}

Si el texto pasa del todo y se detiene, el clip ya no vuelve a su color original. Como podria solucionar esto?