Re: [Flashcoders] Java's wait(timeout) and notify() in ActionScript

2006-06-16 Thread Michael Stuhr
Scott Hyndman schrieb: Yeah, sure. Use setInterval. If the user interacts before the time expires, call clearInterval. jupp, and beware of the scope. this can be deadly with setInterval. micha ___ Flashcoders@chattyfig.figleaf.com To change your

Re: [Flashcoders] Java's wait(timeout) and notify() in ActionScript

2006-06-16 Thread Arul Prasad M L
use mx.utils.Delegate class to solve the scope problem. simple! On 6/16/06, Michael Stuhr [EMAIL PROTECTED] wrote: Scott Hyndman schrieb: Yeah, sure. Use setInterval. If the user interacts before the time expires, call clearInterval. jupp, and beware of the scope. this can be deadly with

Re: [Flashcoders] Java's wait(timeout) and notify() in ActionScript

2006-06-16 Thread Scott Hyndman
You could, but setInterval has an optional scope argument. I'd just use that. Scott On 16/06/06, Arul Prasad M L [EMAIL PROTECTED] wrote: use mx.utils.Delegate class to solve the scope problem. simple! On 6/16/06, Michael Stuhr [EMAIL PROTECTED] wrote: Scott Hyndman schrieb: Yeah, sure.

Re: [Flashcoders] Java's wait(timeout) and notify() in ActionScript

2006-06-16 Thread Andy Makely
On 6/15/06, Scott Hyndman [EMAIL PROTECTED] wrote: Yeah, sure. Use setInterval. If the user interacts before the time expires, call clearInterval. Scott Be sure to also clear that interval in the function called upon timeout, or it will keep firing repeatedly. SetInterval not only waits

Re: [Flashcoders] Java's wait(timeout) and notify() in ActionScript

2006-06-15 Thread Scott Hyndman
Yeah, sure. Use setInterval. If the user interacts before the time expires, call clearInterval. Scott On 15/06/06, Alexander Farber [EMAIL PROTECTED] wrote: 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