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
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.
精彩评论