开发者

Flash: How do I make a POST request from within flash to my processing php page?

I basically have a form inside of Flash that I need to submit to a server-side processing page, which will then return either json or xml telling if it succeeded or not ( json, xml I suppose 开发者_开发技巧). My version of Flash is CS4 and I'm wondering if there are any libraries or frameworks I can use to accomplish this.


You can use URLRequest, and set its method to URLRequestMethod.POST. For setting request parameters use URLvariables.


Figuring out how a framework works or a complete library shouldn't be less work than uses the provided flash classes.

Everything you might need is build into flash, except a JSON library which can be found here.

Take a look at the URLRequest and the URLLoader class in the actionscript 3 reference.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜