Hello, I have a Flash+Perl/C multiplayer card game which works as a web chat on its backend: my Flash app sends a HTTP request every 15 seconds to the backend Apache module or earlier - if the user submits some action.
All works solid, but of course a bit sluggish, because new infos come in only every 15 secs. Then after reading http://rdews.com/?p=30 it struck me: I could have one waiting HTTP connection, blocking until new info from other players becomes available. And another HTTP connection would send the actual player actions to the backend. I never realized, that there are probably quite some web apps which use this pattern to improve responsiveness. (Maybe GWT uses it too? Or is it the gpokr.com author's hack?). Anyway I have changed my backend, but have problems adapting my Flash client. My problem with ActionScript is that it is difficult to track, which of the 2 HTTPRequests has returned data. Because there are no threads, like in Java. (Maybe I should use a MovieClip here?) And also my Flash client hangs after some time, I don't see it making any HTTP requests anymore. Has anybody else made a similar app + experience? Thank you for any ideas. Regards Alex PS: Here is an excerpt of my AS3-code: http://pastebin.com/m56a86fdf _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

