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