I would suggest initializing the interval value as NULL instead of 0, since I think 0 is a valid ID. That way you can be sure you don't accidentally clear an interval that you don't want to.
-Andy On 3/4/07, Alain Rousseau <[EMAIL PROTECTED]> wrote:
Well actually, clearInterval(0) clears the interval ID 0 lets say you have an interval defined : var myInt:Number = setInterval(this, "doSomething", 1000); then it is possible that myInt = 0. The value of myInt is set by calling setInterval, which returns the ID of the interval, so doing clearInterval(0) is the same as doing clearInterval(myInt) but otherwise it doesn't do anything if no interval ID 0 exists Adam Pasztory wrote: > Wow, lots of interval questions lately... :) > > I don't believe clearInterval(0) does anything. However, the code you > posted looks correct. > > -Adam > _______________________________________________ > [email protected] > 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 > > > _______________________________________________ [email protected] 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
_______________________________________________ [email protected] 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

