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

flash XML

Estas en el tema de flash XML en el foro de Flash y Actionscript en Foros del Web. Hola. Necesitaria ayuda en lo siguiente me descargado los archivos del buscador palabras xml en Recursos-flash.es necesitaria que la palabra web del xml fuera realmente ...
  #1 (permalink)  
Antiguo 10/11/2008, 12:11
cas
 
Fecha de Ingreso: diciembre-2004
Ubicación: barcelona
Mensajes: 54
Antigüedad: 19 años, 5 meses
Puntos: 0
flash XML

Hola. Necesitaria ayuda en lo siguiente me descargado los archivos del buscador palabras xml en Recursos-flash.es necesitaria que la palabra web del xml fuera realmente un link activo a una url, y aunque he realizado varias pruebas no lo consigo en link del xml no me funciona.
y me preguntaba si podrían echarme una mano en cómo realizarlo.
Gracias de nuevo y perdón por las molestias.

as:

System.useCodepage = false;
var meuXML:XML = new XML();
meuXML.ignoreWhite = true;
meuXML.load('port.xml');
bt._visible = false;
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);



/*************************/
_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);


/*************************/
}
};
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();


boton buscar:

on (release) {
if (busca.text == "") {
Selection.setFocus("busca");
} else {
_root.filtro = _root.busca.text.toLowerCase();
_root.gotoAndPlay("xml");
}
}

XML

<?xml version="1.0" encoding="UTF-8"?>
<menu>
<item>
<titulo>
<![CDATA[Causa Perfumeria]]>
</titulo>
<desc>
<![CDATA[ Anselm Clavé 55. Tel. 93 879 5957]]>
</desc>
<tipo>
<![CDATA[Web]]>
</tipo>
<imagem>
<![CDATA[igreja.jpg]]>
</imagem>
<link>
<![CDATA[[<http:www.ntwebdisseny.com]]>
</link>
</item>


Gracias y saludos

Última edición por cas; 11/11/2008 a las 05:32
  #2 (permalink)  
Antiguo 11/11/2008, 05:30
cas
 
Fecha de Ingreso: diciembre-2004
Ubicación: barcelona
Mensajes: 54
Antigüedad: 19 años, 5 meses
Puntos: 0
Respuesta: flash XML

nadie?? puede echarme una mano.
porfa.
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 11:51.