Comunidad de diseño web y desarrollo en internet online

PROBLEMA CON FADE IN FADE OUT

Citar            
MensajeEscrito el 21 Mar 2008 11:46 pm
Hola, que hay;
tengo problemilla con mc con este codigo:
on (rollOver)
{
_root.agradecimientos.onEnterFrame = function ()
{
if (this._currentframe != 45)
{
this.nextFrame();
}
else
{
this.stop();
delete this["onEnterFrame"];
} // end if
};
}
on (rollOut)
{
_root.agradecimientos.onEnterFrame = function ()
{

if (this._currentframe != 1)
{
this.prevFrame();
}

else
{
this.stop();
delete this["onEnterFrame"];
} // end if
};
}


Y FUNCIONA BIEN, LO QUE PASA ES QUE CUANDO CARGO ESTE CLIP A LA LINEA PRINCIPAL DE TIEMPO, MEDIANTE LOADMOVIE...NO FUNCIONA
SABEIS ALGUN TRUQUILLO???

SALUDOS

Por alexander_sp

58 de clabLevel



 

msie7
Citar            
MensajeEscrito el 22 Mar 2008 10:13 am
Bendito _lockroot...
Pon esto en el primer fotograma de la película principal:

Código :

this._lockroot=true

Por mcapu

181 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 22 Mar 2008 01:36 pm
Bendito _lockroot...
gracias.....un saludo

Por alexander_sp

58 de clabLevel



 

msie7
Citar            
MensajeEscrito el 23 Mar 2008 05:08 am
Si quieres evitarte problemas como estos en el futuro, confía en mí, no utilices "_root". Puedes:

  1. Usar "_parent" (si se trata del contenedor del objeto, es decir si sólo quieres ir un nivel afuera)
  2. Crear una variable que apunte al objeto (con los _parent que sean necesarios). Por ejemplo.

    Código :

    var target_mc:MovieClip = _parent._parent._parent.elTarget //colocas los _parent que hagan falta.
    

    y luego, en vez de "_root.loquesea" usas "target_mc" y ya. Si cambia la ruta, sólo ajustas la variable y el código queda igual.

Por The Fricky!

Presidente

6168 de clabLevel

3 tutoriales
8 articulos

Genero:Masculino   Bastard Operators From Hell Héroes

Piccola Venezia...

firefox
Citar            
MensajeEscrito el 24 Mar 2008 06:27 pm
ok....gracias The Fricky!
un saludo

Por alexander_sp

58 de clabLevel



 

msie7

 

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