Ahora voy a tratar de explicar mi problema, el cual navegué y navegué buscando una solución, la cual podrán notar que no la encontré
Paso a explicar:
Tengo un FLA principal, el cual tiene los archivos principales de diseño (marco, titulo etc), el fondo general y el sistema de navegación y/o menú que carga diferentes películas externas. ( Hasta ahí cosa de todos los días)
Mi problema se presenta con un SWF externo que carga una galería la cual me pase varios días haciendola (a partir de ahora Galeria.swf). Esta galería tiene animación realizada por código y se superponen entre ellas mediante el código SwapDepths:
Ej. Foto 1 dentro de la Galería:
Código :
onClipEvent (load)
{
setProperty("", _x, 0);
setProperty("", _y, -500);
thisrl = Math.random() * 180;
pic_hit._visible = 1;
}
onClipEvent (enterFrame)
{
if (_parent.picCount < 1)
{
thisx = 830;
thisy = 400;
thisr = thisrl;
thisxs = 50;
pic_hit._visible = 1;
this.swapDepths(40);
}
else if (_parent.picCount == 1)
{
thisx = 500;
thisy = 280;
thisr = 0;
thisxs = 100;
pic_hit._visible = 0;
this.swapDepths(0);
}
else if (_parent.picCount > 1)
{
thisx = 180;
thisy = 400;
thisr = thisrl;
thisxs = 50;
pic_hit._visible = 1;
this.swapDepths(1);
} // end else if
setProperty("", _x, _x + (thisx - _x) / _root.genRate);
setProperty("", _y, _y + (thisy - _y) / _root.genRate);
setProperty("", _rotation, _rotation + (thisr - _rotation) / _root.genRate);
setProperty("", _yscale, _xscale + (thisxs - _xscale) / _root.genRate);
setProperty("", _xscale, _xscale + (thisxs - _xscale) / _root.genRate);
}
Ej Foto 2 en Galería:
Código :
onClipEvent (load)
{
setProperty("", _x, 0);
setProperty("", _y, -500);
thisrl = Math.random() * 180;
pic_hit._visible = 1;
}
onClipEvent (enterFrame)
{
if (_parent.picCount < 2)
{
thisx = 830;
thisy = 400;
thisr = thisrl;
thisxs = 50;
pic_hit._visible = 1;
this.swapDepths(39);
}
else if (_parent.picCount == 2)
{
thisx = 500;
thisy = 280;
thisr = 0;
thisxs = 100;
pic_hit._visible = 0;
this.swapDepths(0);
}
else if (_parent.picCount > 2)
{
thisx = 180;
thisy = 400;
thisr = thisrl;
thisxs = 50;
pic_hit._visible = 1;
this.swapDepths(2);
} // end else if
setProperty("", _x, _x + (thisx - _x) / _root.genRate);
setProperty("", _y, _y + (thisy - _y) / _root.genRate);
setProperty("", _rotation, _rotation + (thisr - _rotation) / _root.genRate);
setProperty("", _yscale, _xscale + (thisxs - _xscale) / _root.genRate);
setProperty("", _xscale, _xscale + (thisxs - _xscale) / _root.genRate);
}
(En el código se puede ver la utilización de SwapDepths para que las fotos se pongan una arriba de la otra en orden.)
Ahora mi problema es que cuando llamo a la seccion Galeria.swf me carga todo bárbaro, pero se superpone con todo lo que hay en el FLA principal.
Ej: El menú es emergente, al hacer click sobre la barra que lo activa, pasa a ocupar toda la pantalla de diseño, pero una vez que se carga la sección de Galería, las fotos quedan arriba del menu y de todo lo que se navegue.
Es más, cargo otros swfs externos y la galería no se quiere ir, se queda ahí, arriba de todo
Entonces, mi pregunta es, habrá alguna manera de indicar que el código de SwapDepth afecte sólamente a ese SWF y no a todos los demás?
Dejo un link para que se entienda más facil: (Disculpen el peso (unos 350Kb) no está hecho ni el loading ni la optimazación de imagenes todavía)
http://www.silence.com.ar/garias/
Muchas gracias!
