[TABLE]
[TR]
[TD=“class: votecell”][/TD]
[TD=“class: postcell”] I get an ‘undefined’ output for my flash as2 rss feed once it’s LIVE on the browser. It works fine when I test it locally, but once it goes LIVE it displays ‘undefined’.
Now I did research this and found out that it could be a security measure via the browser or a cross-domain issue. I also tried mirroring this rss feed in google feedburner. Although it only works on an opera browser and old Internet Explorter 8. Any suggestions would be great. Please Help!
Below is the code.
[/TD]
[/TR]
[/TABLE]
stop();
//xml_holder.font = “Tahoma”;
xml_holder.embedFonts = true;
xmlLoad = new XML();
xmlLoad.load(“http://feeds.feedburner.com/MonthlyHoroscopeByIndastrocom”);
xmlLoad.ignoreWhite = true;
//xml_holder.html = true;
xmlLoad.onLoad = function(success){
//if successful
if(success && xmlLoad.status == 0){
//reset the text
xml_text="";
//list of items
var xmlItems:XML = xmlLoad.firstChild.firstChild;
var itemlink:String,itemtitle:String,itemdesc:String = ‘’;
for (var m = 0; m<xmlItems.childNodes.length; m++) {
//grab each item
if (xmlItems.childNodes[m].nodeName == “item”) {
var article:Array = xmlItems.childNodes[m].childNodes
itemlink = itemtitle = itemdesc = ‘’;
for (var n:Number = 0; n<article.length; n++) {
switch (article[n].nodeName) {
case “link”:
itemlink=article[n].firstChild.toString();
break;
case “title”:
itemtitle=article[n].firstChild.toString();
break;
case “description”:
itemdesc=article[n].firstChild.nodeValue;
break;
}
}
xml_text+= itemdesc;
}
}
}
//set the text
xml_holder.htmlText = xml_text;
}