> Is a new intervalID always one greater than the most recent intervalID?

AFAIK, yes.

> That is, will this always work to ensure you only ever have one interval 
> running
> at a time?

Again, AFAIK, yes.. but at the same time it limits your to only ever have one 
interval, no matter where.

For instance you won't be able to have 2 instances of the same class run an 
interval at the same time, which might not be what 
you're after.

If you want to manage intervals better than the built in way (which is 
non-existant), google for setInterval manager and I'm sure 
something useful will turn up.

Here's one I just found:
http://www.ny-dev.com/forums/f184/interval-manager-552/

regards,
Muzak

----- Original Message ----- 
From: "Danny Kodicek" <[EMAIL PROTECTED]>
To: <flashcoders@chattyfig.figleaf.com>
Sent: Wednesday, April 25, 2007 12:02 PM
Subject: RE: Re[2]: [Flashcoders] Clear Set Interval Q:


> >
>> HG> So once you create a new interval with the same name you
>> will lose
>> HG> the path of the original?
>>
>> An interval has no name, it has a numeric ID - what has a
>> name is the variable (or more variables if you want) where
>> you store this ID. And yes, if you doesn't care about storing
>> the ID (e.g. you overwrite it), you will lose information
>> which is required for clearing a specific interval.
>

>
> clearInterval(setInterval(this, "something", 1000) - 1)
>
> Danny


_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

Reply via email to