Loading a RSS feed into Flash

ActionScript:
  1. // create a new XML object
  2. var sports:XML = new XML();
  3.  
  4. // set the ignoreWhite property to true (default value is false)
  5. sports.ignoreWhite = true;
  6.  
  7. // After loading is complete, trace the XML object
  8. sports.onLoad = function(success) {
  9.   trace(sports);
  10. };
  11.  
  12. // load the XML into the sports object
  13. sports.load("http://rss.news.yahoo.com/rss/sports");

3 Responses to “Loading a RSS feed into Flash”

  1. Martin Dimitrov Says:
    July 26th, 2007 at 1:48 pm

    Helmut, pardon my ignorance, I tried to solve it myself but with no success…
    I want to use your “Loading RSS feed into Flash” script and it works fine, but I do not know how to capture the output and save it as an xml file. My ultimate objective is to have just the entries from the xml displayed in a list component.
    Best regards,
    Martin

  2. Flash_lover Says:
    January 16th, 2008 at 4:24 pm

    This is cool but I can’t see the info, I can see it in the output box
    only.

  3. N2KC Says:
    April 6th, 2008 at 9:30 pm

    Yesssss. Finally. Just the base code of loading the RSS, not some super long and advanced script. :D

Leave a Reply