2012-03-02 88 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