开发者

Flex and CGI Newbie: How do I get them to talk

开发者 https://www.devze.com 2022-12-09 14:10 出处:网络
I am a Flex developer and never used CGI before. I wanted to create a solution whereby A flex would call a CGI script to read a database. Ive been trying to look for examples on how such a solution wo

I am a Flex developer and never used CGI before. I wanted to create a solution whereby A flex would call a CGI script to read a database. Ive been trying to look for examples on how such a solution would work. I was hoping someone o开发者_C百科n here might be able to shed some light as to how this would work, and what are the various components required. Thanks


You can do it with the URLLoader class. Load the CGI url using the urlloader class - execute queries using cgi script and return the response - handle the results in the complete event handler of URLLoader. Check this answer for details on using the URLLoader class.


Probably the easiest way is to output XML from your CGI and use Flex's HTTPService to connect to the CGI and get data. Sending updates can be done through sending HTTP Request Parameters via HTTPService.

0

精彩评论

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