Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/01/2010, 00:10
Rocketcat1983
 
Fecha de Ingreso: abril-2009
Mensajes: 11
Antigüedad: 15 años
Puntos: 0
Ayuda con este codigo ( xml en flash)

Hola , finalmente logre realizar la base de datos que necesita , ahora la cuestion es ..en que parte esta la falla..
los datos se cargan perfectamente ..pero al momento de ver otras secciones del multimedio el resultado de la busqueda ( que es un movie clip) se queda en primer plano y no permite ver nada mas... ¿como podria modificarle para que solo aparesca en un determinada escena? por mas que le busco no le hallo el error... gracias ...les dejo el codigo para que lo vean..gracias

Cita:
System.useCodepage = true;
var meuXML:XML = new XML();
meuXML.ignoreWhite = true;
meuXML.load('p.xml');
var armID:Array = [];
meuXML.onLoad = function() {
qtd = this.childNodes[0].childNodes.length;
for (var i = 0; i<qtd; i++) {
for (var a = 0; a<this.firstChild.childNodes[i].childNodes.length; a++) {
diminui = String(this.firstChild.childNodes[i].childNodes[a].childNodes).toLowerCase();
if (diminui.indexOf(_root.filtro) !== -1) {
armID.push(i);
}
}
}
armID = arranca(armID);
if (armID.length == 0) {
resultados.text = "Ningún arcuivo encontrado";
} else if (armID.length == 1) {
resultados.text = "1 archivo encontrado.";
} else {
resultados.text = "Resultados "+armID.length+" archivos.";
}
for (var i = 0; i<armID.length; i++) {
bt.duplicateMovieClip('bt'+i, _root.getNextHighestDepth());
_root['bt'+i]._y += bt._height*i+i;
/*************************/
var titulo = (this.childNodes[0].childNodes[armID[i]].childNodes[0].firstChild);
var desc = (this.childNodes[0].childNodes[armID[i]].childNodes[1].firstChild);
var tipo = (this.childNodes[0].childNodes[armID[i]].childNodes[2].firstChild);
var imagem = (this.childNodes[0].childNodes[armID[i]].childNodes[3].firstChild);
/*************************/
_root['bt'+i].titulo.html = true;
_root['bt'+i].titulo.htmlText = (titulo+"<font color='#cc6600'> - "+(tipo)+"</font>");
_root['bt'+i].desc.html = true;
_root['bt'+i].desc.htmlText = (desc);
_root['bt'+i].imagem.html = true;
_root['bt'+i].imagem.htmlText = (imagem);
_root
/*************************/
}
};
function arranca(x) {
for (var i = 0; i<x.length; i++) {
if (x[i] == x[i+1]) {
x.splice(i,1);
arranca(x);
}
}
return x;
}
stop();