> > 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/
As a general rule, I don't use them at all, but I was just interested to find a solution that didn't involve having to keep track of all intervals in use. When working in Director, I've in the past wrapped timeout objects (the Lingo equivalent of intervals) in my own objects to improve the functionality, and that's probably what I'd do in Flash too if I were to use them. 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