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
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:
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
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
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
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
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
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
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
9 matches
Mail list logo