0 Replies Latest reply on Dec 15, 2008 7:39 PM by Ultran

    Diving deeper into HTTPService using AS3

      I'm getting more into Flex and want to make an advanced rss reader to keep up with the newest tweets in my titter feed. The advanced part involves retrieving an rss feed, and appending only the new items that I haven't seen yet to a list, with an alert message/highlight color when new items become available.

      I can probably figure out all the logistical stuff, but was wondering if anyone knew of a good example that handles HTTPService data in AS3, not dumping it all to a component of some sort right away? A pure AS3 example would rock as well, although I do intend to put it all back into flex components when finished messing with the data. I look forward to your thoughts.

      Thanks much in advance. :)

      So far, I found this in another post which will work great:
      var service:HTTPService = new HTTPService();
      service.url = <your url>;
      service.method = "GET";
      service.addEventListener("result", httpResult);
      service.addEventListener("fault", httpFault);

      Now I just need a function to handle the data. I read that the 'result' might be returned as an object that I can parse, probably with a for statement? Still researching...