httpservice - 结果事件
我正在开发 AIR 应用程序。 要加载表单,我需要执行多个 httpservice 以从 mysql 数据库加载数据。 一切正常,但由于 httpservice 是异步的,我想知道在显示窗口之前所有 ResultEvent 是否都正常。 所有的服务都是在预初始化阶段发送的,但是如何知道是否所有的发送结果呢? 感谢您的帮助
I'm working on a AIR application.
To load a form I need to execute several httpservice to load data from mysql database.
All works well, but as httpservice is asynchrous, I'd to know if all ResultEvent is good before to show the window.
All services are send in preinitialize phase, but how to know if all send result?
Thanks for helping
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我的窗口上,我添加了这样的启用属性:
因为要加载我的表单,我必须加载 6 httpservice。
我声明了一个可绑定变量,
在启动所有 httpservice 之前,我执行
bload = 0;
因此,即使所有 httpservice 发送结果,我的窗口也会启用。因为在每个 resultEvent 中我都会这样做
On my window, I add enable property like that:
Because to load my form, I must load 6 httpservice.
I declare a bindable variable
Before to launch all my httpservice I do
bload = 0;
So my window is enable even if all httpservice send result. because in each resultEvent I do