PDA

View Full Version : how to call RSS



abhikumar
January 21st, 2008, 04:20 PM
for this feed:
http://rss.news.yahoo.com/rss/india

how do i call this in my Flash file..for a simple local xml file- the code works and now that im trying to connect it with an external xml file.. does not work becuase the structure is different..

how do i populate a value from the above RSS into my news_txt textfield:

_root.thetitle = this.firstChild.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
news_txt.htmlText = _root.thetitle;

abhikumar
January 21st, 2008, 10:07 PM
okay- let me try again..
this is the rss feed..
http://rss.news.yahoo.com/rss/topstories

and this is how im trying to read the news title(s) into my "news_txt" textfield:
_root.thetitle = this.firstChild.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
news_txt.htmlText = _root.thetitle;

of course, it is not working-- let me know how to fix this- PLEASE !!

simplistik
January 21st, 2008, 11:56 PM
what's this have to do w/ server-side things?... this looks like a flash question...

abhikumar
January 22nd, 2008, 08:49 AM
it is more about calling XML and i thought u guys would be able to comment on XML issues.. on flash forum- no one replied so i had to put it here.- thanks!!

....and yes, the description for this forum says "Get your XML, PHP, ASP, etc. questions answered here."