swf发送延迟与LocalConnection之间的关系LocalConnection嗅探工具

发布于 2024-11-06 02:53:23 字数 630 浏览 7 评论 0原文

我在 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 技术交流群。

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

发布评论

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

评论(1

不奢求什么 2024-11-13 02:53:23

我不认为问题在于多个浏览器等。我在 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.

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