swf发送延迟与LocalConnection之间的关系LocalConnection嗅探工具
我在 2 个 swf 之间的 LocalConnections 通信中遇到了一个奇怪的问题。
第一个(FLEX 应用程序)通过专用 LocalConnection 向第二个(Flash 应用程序)发送消息。然后 Flash 通过在另一个专用 LocalConnection 上发送消息来进行应答。 该消息不会被FLEX直接接收,延迟至少30秒,最多1或2分钟! 看来这个问题只发生在 Flash Player >= 10 上,而在 Chrome 上永远不会发生。
我在网络上没有找到任何有关类似问题的内容,也没有在 Flash Player 发行说明中找到任何内容。 有人已经遇到过这样的问题吗?
顺便问一下,有什么工具可以用来嗅探LocalConnection通信吗?它可能会帮助我更好地理解这个问题。
谢谢!
附加信息:
- swf 位于不同的帧中
- swf 嵌入 swfobject
- 我尝试延迟 Flash 发送,我尝试创建另一个专用于此调用的 LocalConnection,但我总是得到相同的结果:对于所有调用,FLEX 方法在同样的延迟。
- 我还在 FLEX 中放置了一个计时器来定期记录日志,以查看是否没有后台进程延迟方法处理,但一切似乎都很好
I experience a weird issue on a LocalConnections communication between 2 swf.
The first one (FLEX application) sends a message on a dedicated LocalConnection to a second one (Flash application). The Flash then answers by sending a message on another dedicated LocalConnection.
This message is not directly received by the FLEX and the delay is at least 30s, up to 1 or 2 minutes!
It seems the issue only occurs with Flash Player >= 10 and it never occurs with Chrome.
I didn't find anything on the web concerning a similar issue nor something in Flash Player release notes.
Did someone already have this kind of problem?
By the way, is there any tool that can be used to sniffer LocalConnection communications? It may help me to better understand the issue.
Thanks!
Additional information:
- swf are located in different frames
- swf are embed with swfobject
- I tried to delay the Flash sending, I tried to create another LocalConnection dedicated to this call but I always had same result: for all calls, the FLEX method is called after the same delay.
- I also put a timer in FLEX to periodically log to see if there is no background process delaying the method processing but everything seems fine
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不认为问题在于多个浏览器等。我在 flash + flex 之间使用了 LocalConnection,并且从未经历过任何延迟。您自己尝试过 swf 吗?他们应该仍然能够沟通。 LocalConnection 不需要浏览器。
使用 LocalConnection,您还可以检测何时建立连接以及是否存在发送错误。如果独立运行 swfs,您可以跟踪任何错误。此外,您还可以尝试使用 MonsterDebugger 来诊断浏览器中 swf 的问题。 MonsterDebugger 还使用 LocalConnection,因此如果它有效,您可以确定它是代码中的某些内容,而不是 LocalConnection。
I don't think the issue is with the multiple browsers, etc. I have used LocalConnection between flash + flex and have never experienced any delay. Have you tried the swfs by themselves? They should still be able to communicate. LocalConnection does not require a browser.
With LocalConnection, you are also able to detect when a connection is made as well as if there is a send error. If running the swfs standalone, you could trace any errors. Also, you can try using MonsterDebugger to diagnose issues from swfs in your browser. MonsterDebugger also uses LocalConnection, so if it works, you can be sure it's something in your code, and not the LocalConnection.