开发者

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

开发者 https://www.devze.com 2022-12-10 13:56 出处:网络
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 开发者_开

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

精彩评论

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