Foros del Web » Creando para Internet » Flash y Actionscript »

Ayuda level

Estas en el tema de Ayuda level en el foro de Flash y Actionscript en Foros del Web. Por que el holder me lo carga detras? Se puede ver el ejemplo del problema aqui: http://www.artesanosdelcristal.com/new/fla/xml.html obj_xml.onLoad = function(exito) { //Contenedor para tener las ...
  #1 (permalink)  
Antiguo 19/02/2008, 16:52
crg
 
Fecha de Ingreso: febrero-2008
Mensajes: 23
Antigüedad: 16 años, 2 meses
Puntos: 0
Ayuda level

Por que el holder me lo carga detras?

Se puede ver el ejemplo del problema aqui:
http://www.artesanosdelcristal.com/new/fla/xml.html

obj_xml.onLoad = function(exito) {
//Contenedor para tener las fotos

createEmptyMovieClip("mc", 0);
createEmptyMovieClip("mc2", 1000);
if (exito)
{
largo = obj_xml.firstChild.childNodes.length;
tipo = new Array(largo);
titulo = new Array(largo);
nombreimagen = new Array(largo);
nombreimagendetalle = new Array(largo);
referencia = new Array(largo);
capacidad = new Array(largo);
indice = new Array(largo);
fila=-1;
columna=0;

//Llenar los arrays
if (largo>27) { largo=27; }
for (i=0; i<largo; i++)
{
//tipo[i] = obj_xml.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue;
//titulo[i] = obj_xml.firstChild.childNodes[i].childNodes[1].firstChild.nodeValue;
nombreimagen[i] = obj_xml.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue;
nombreimagendetalle[i] = obj_xml.firstChild.childNodes[i].childNodes[1].firstChild.nodeValue;
//referencia[i] = obj_xml.firstChild.childNodes[i].childNodes[4].firstChild.nodeValue;
//capacidad[i] = obj_xml.firstChild.childNodes[i].childNodes[5].firstChild.nodeValue;

mc.attachMovie("fotos", "fotos"+i, i);
mc["fotos"+i].createEmptyMovieClip("contiene",0);
if ((i)%9==0)
{
fila=fila+1
columna=0;
}
else
{
columna=columna+1;
}

mc["fotos"+i]._y = 83*(fila)+55;
mc["fotos"+i]._x = 60*(columna+1);

mc["fotos"+i].contiene.loadMovie("../imgs/"+ nombreimagen[i]);

cuadro._visible=false;

mc["fotos"+i].onRollOver = function ()
{

_global.imagenx=this._x;
_global.imageny=this._y;
//El indice lo obtengo del nombre del boton
holder.loadMovie("../imgs/"+nombreimagendetalle[this._name.substring(5)],"mc2");
cuadro._visible=false;

var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0x000000;
my_txt.text = this._name;
my_txt.setTextFormat(my_fmt);


}
mc["fotos"+i].onRollOut = function ()
{
holder.unloadMovie();
cuadro._visible=false;
my_txt._visible=false;
}


}


// indice[i] = i;

}
else
{
trace("No se pudo cargar el XML");
}

};
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 22:27.