Just keep an array of the intervals and refer to that.  Then you only
declare the array, and add and subtract the intervals from the array.
Plus keeps it all nice and tidy.

Jason Merrill
Bank of America 
Learning & Organizational Effectiveness
 
 
 
 
 

>>-----Original Message-----
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Stephen Ford
>>Sent: Wednesday, November 29, 2006 7:35 PM
>>To: flashcoders@chattyfig.figleaf.com
>>Subject: [Flashcoders] How variables when using setInterval ...
>>
>>Hello,
>>
>>Lets say you have 10 different setIntervals running within your class.
Do you also
>>declare 10 different variables for these intervals ? like so:
>>
>>private var nInt:Number;
>>private var nInt2:Number;
>>private var nInt3:Number;
>>etc
>>etc
>>
>>Or can you just declare one variable and use it multiple times (I'm
guessing not
>>because then when you clear the interval, all of them would stop).
>>
>>Thanks._______________________________________________
>>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
_______________________________________________
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