air for ios / android feeds
ive saw this on adobe site
http://cookbooks.adobe.com/post_Integrating_an_RSS_feed_into_an_Adobe_AIR_applicat-17926.html
i put the code into a frame , and removed the public tags for a package .
then compiled and the erorr appeard to me is this
| Scene 1, Layer 'Actions', Frame 6, Line 15 | 1046: Type was not found or was not a compile-time constant: ResultEvent. |
this the whole code added into android project
function getFeed()
{
var service:mx.rpc.http.HTTPService = new mx.rpc.http.HTTPService();
feedURL = "http://ameerw.com/feed/";
service.method = "POST";
service.contentType = "application/x-www-form-urlencoded";
service.resultFormat = "e4x";
service.requestTimeout = 48;
service.send(feedUrl);
service.addEventListener(ResultEvent.RESULT, this.feedPosts);
}
// Then create the function that will manage the response:
function feedPosts(e:ResultEvent)
{
var result:XML = e.result as XML;
// assign the items you want, to the component you want, below is sample
this.dataGrid = result.item;
}
on the feed url place ive tried all other possible options
such
//http etc
http etc with out //