Flex 和 CGI​​ 新手:如何让他们说话

发布于 2024-08-08 20:04:46 字数 129 浏览 2 评论 0原文

我是一名 Flex 开发人员,以前从未使用过 CGI。我想创建一个解决方案,让 A flex 调用 CGI 脚本来读取数据库。我一直在尝试寻找有关此类解决方案如何工作的示例。我希望这里有人能够阐明它是如何工作的,以及所需的各种组件是什么。 谢谢

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 on here might be able to shed some light as to how this would work, and what are the various components required.
Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

樱娆 2024-08-15 20:04:46

您可以使用 URLLoader 类来完成此操作。使用 urlloader 类加载 CGI url - 使用 cgi 脚本执行查询并返回响应 - 在 URLLoadercomplete 事件处理程序中处理结果。有关使用 URLLoader 类的详细信息,请查看此答案

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.

傾城如夢未必闌珊 2024-08-15 20:04:46

也许最简单的方法是从 CGI 输出 XML 并使用 Flex 的 HTTPService 连接到 CGI 并获取数据。发送更新可以通过 HTTPService 发送 HTTP 请求参数来完成。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文