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

Feed - flash cs3

Estas en el tema de Feed - flash cs3 en el foro de Flash y Actionscript en Foros del Web. Hola a todos en este momento necesito poder conectar un feed en un swf al parecer ya puede encontrar una gran solucion en el siguiente ...
  #1 (permalink)  
Antiguo 25/01/2010, 11:50
Avatar de konoyek  
Fecha de Ingreso: julio-2007
Mensajes: 268
Antigüedad: 16 años, 9 meses
Puntos: 0
De acuerdo Feed - flash cs3

Hola a todos en este momento necesito poder conectar un feed en un swf al parecer ya puede encontrar una gran solucion en el siguiente codigo:

Código HTML:
var rssurl:String = "http://peliculas.konowar.com/feed/rss";

var rssxml:XML = new XML();
rssxml.ignoreWhite = true;
rssxml.load(rssurl);
rssxml.onLoad = function() {
	var nodo:XMLNode = rssxml.firstChild.firstChild;
	var vtit:String = "";
	var vurl:String = "";
	var vdes:String = "";
	var vcon:String = "";
	
	for (i=0; i<nodo.childNodes.length; i++) {
		var snodo:XMLNode = nodo.childNodes[i];
		switch (snodo.nodeName) {
			case "title":
				vtit = snodo.firstChild.nodeValue;
			break;
			case "link":
				vurl = snodo.firstChild.nodeValue;
			break;
			case "description":
				vdes = snodo.firstChild.nodeValue;
			break;
			case "item":
				vcon = vcon + getContent(snodo);
			break;
		}
	}
	txttitle.htmlText = "<a href=\"" + vurl + "\">" + vtit + "</a>";
	txtdescription.text = vdes;
	txtcontent.htmlText = vcon;
}

function getContent(vxml) {
	var stit:String = "";
	var surl:String = "";
	var sdes:String = "";
	for (j=0; j<vxml.childNodes.length; j++) {
		var sxml:XMLNode = vxml.childNodes[j];
		switch (sxml.nodeName) {
			case "title":
				vtit = sxml.firstChild.nodeValue;
			break;
			case "link":
				vurl = sxml.firstChild.nodeValue;
			break;
			case "description":
				vdes = sxml.firstChild.nodeValue;
			break;
		}
	}
	return "<a href=\""+vurl+"\"><b><font color=\"#000\" size=\"18\">"+vtit+"</font></b></a><br><p>";
}
pero cuando lo subo directamente a un host no hace ninguna conexion

el archivo swf esta en el siguiente lik http://konowar.com/imagenes/konowar.swf

saludos

Etiquetas: feed, flash
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 01:23.