Hello, I'm trying to rewrite a web chat client written in Java, which is performing the following in its main loop:
I have a variable called "url" and if after waiting TIMEOUT seconds it is still unset, then I just retrieve the URL http://myserver/mychat?event=keepalive, so that the chat server knows, that the client is still connected. BUT if during that waiting period the url-variable gets set (for example, when the user types smth. into a textfield) I want to interrupt the waiting IMMEDIATELY and retrieve the URL http://myserver/mychat?event=chat&args=blah+blah. In the Java client I do this by using the wait() and notifyAll(). Is there a way to do this in ActionScript? I.e. some MovieClip with LoadVars should sleep for TIMEOUT seconds (so that it doesn't poll and waste the CPU) and wake up when needed? Thank you Alex -- http://preferans.de/ _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

