Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Diving deeper into HTTPService using AS3

Avatar

Avatar
Level 1
Ultran
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
Ultran
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
Ultran
Level 1

15-12-2008

Hello.

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. 🙂




Edit:

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);

service.send();



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...