2012-03-02 89 views
0

有人可以推荐我一个Adobe空气和REST API通信和身份验证的好例子吗?谷歌搜索这个问题并没有帮助我。Adob​​e空气和REST通信

+0

http://fbflex.wordpress.com/2008/06/12/a-simple-actionscript-flex-rest-client/这个链接也可能帮助http://stackoverflow.com/questions/4483098/is-it-it-possible-to-do-lightweight-rest-calls-in-flex – Triode 2012-03-02 06:45:05

回答

0

您应该能够将REST Web Services作为Action Script类导入到Air项目中。如果您使用的是Flash Builder,那么调用REST Services应该相当容易。

例子:http://www.javabeat.net/articles/print.php?article_id=253

+0

谢谢@CodeToGlory。我不能使用URLLoader和URLRequest进行休息通信吗? – Shanaka 2012-03-02 04:22:35

+0

您可以http://help.adobe.com/zh_CN/FlashPlatform/reference/actionscript/3/flash/net/URLRequest.html#includeExamplesSummary – 2012-03-02 04:42:04