alguien me podria ayudar porfavor, me anda fallando un poco en el efecto crossfade el fadeout... no lo ase y se ve un salto notable al cargar el siguiente swf...
en el siguiente sitio esta el problema
http://www.bajamar.com/realestate.html
ya esta el AS ai solo que al parece la condicion no se cumple y no entra a la funcion para hacer el fadeout, el codigo de ejemplo para dos botones:
Código :
swfArray = new Array("santabarbara.swf", "aboutus.swf", "ourservices.swf", owning.swf");
this.createEmptyMovieClip("target1",1)
this.createEmptyMovieClip("target2",2)
target2._alpha = 0;
activeTarget = target1;
this.onEnterFrame = function() {
if (obj1._alpha >= 0) {
obj1._alpha -= 5;
}
if (obj2._alpha <= 100) {
obj2._alpha += 5;
}
};
/*BOTON ABOUT US*/
menu.aboutus.onRelease = function() {
if (activeTarget == target1) {
obj1 = target1;
obj2 = activeTarget = target2;
} else {
obj1 = target2;
obj2 = activeTarget = target1;
}
obj2.loadMovie(swfArray[1])
obj1.onEnterFrame = function () {
if (obj2._alpha <=0 ) {
this.unloadMovie();
delete this.onEnterFrame;
}
}
}
/*BOTON OUR SERVICES*/
menu.ourservices.onRelease = function() {
if (activeTarget == target1) {
obj1 = target1;
obj2 = activeTarget = target2;
} else {
obj1 = target2;
obj2 = activeTarget = target1;
}
obj2.loadMovie(swfArray[2])
obj1.onEnterFrame = function () {
if (obj2._alpha <=0 ) {
this.unloadMovie();
delete this.onEnterFrame;
}
}
}
el problema es que hace bien el proceso de fadein, solo que al cambiar de swf no me hace el fadeout como si no cumpliera la condicion...
si alguien necesita el codigo para su uso con gusto se los puedo compartir...
