Re: [Flashcoders] setInterval() and the trouble

2005-10-30 Thread Kent Humphrey
Eric E. Dolecki wrote: use setTimeout now and you dont need to worry about interval ids. e.dolecki Have you found any documentation about setTimeout - because I haven't : ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] setInterval() and the trouble

2005-10-30 Thread eric dolecki
Its undocumented, but it works in a fire once kind of situation like javascript: foo = setTimeout( func, ms) clearTimeout(foo) but only if you need to stop the interval. Otherwise, just fire it and forget it. e.d. On 10/30/05, Kent Humphrey [EMAIL PROTECTED] wrote: Eric E. Dolecki wrote:

RE: [Flashcoders] setInterval() and the trouble

2005-10-30 Thread Tim Beynart
Why is something so useful undocumented? I have to bend over backwards to create single-fire timers. Thanks for the post. -Original Message- Its undocumented, but it works in a fire once kind of situation like javascript: foo = setTimeout( func, ms) clearTimeout(foo) but only if you

RE: [Flashcoders] setInterval() and the trouble

2005-10-30 Thread Steve Rankin
Not sure, but it's in the new ActionScript 2.0 Language Reference for Flash Player 8. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Beynart Sent: Sunday, October 30, 2005 2:59 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] setInterval

Re: [Flashcoders] setInterval() and the trouble

2005-10-30 Thread Peter O'Brien
not be documented is beyond me. Derek Vadneau -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Rankin Sent: Sunday, October 30, 2005 4:37 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] setInterval() and the trouble Not sure, but it's

Re: [Flashcoders] setInterval() and the trouble

2005-10-30 Thread Weyert de Boer
I got some stuff working now ;-=) Looks like I had some infinite loop indeed. Pff. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] setInterval() and the trouble

2005-10-29 Thread Liam Morley
I imagine you're calling clearInterval with the appropriate interval ID upon each quiz question submittal, and then afterwards recalling setInterval for the new question? How does it fail the second time? Does it just never call it again, or does it call the function at a different interval? Liam

Re: [Flashcoders] setInterval() and the trouble

2005-10-29 Thread JOR
At first glance it looks like you have a potential continuous loop issue? stopwatchComplete() questionComplete() stopwatchComplete() and so on if (id = questions.length) Second is I don't see where id is defined in questionComplete() did you mean to type this instead: if ( questionId

Re: [Flashcoders] setInterval() and the trouble

2005-10-29 Thread Eric E. Dolecki
use setTimeout now and you dont need to worry about interval ids. e.dolecki On Oct 29, 2005, at 11:21 AM, Weyert de Boer wrote: JOR wrote: At first glance it looks like you have a potential continuous loop issue? stopwatchComplete() questionComplete() stopwatchComplete() and so on