Flex/Flash is single-threaded which means that nothing can keep the next
line of code from running.

 

You won't get a timer event until you finish your loop, and you don't
need to worry about calling stop() until you no longer want timer
events.

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, April 22, 2008 8:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Timer questions

 

1. If I timer.start() in a loop will the loop be waiting for TimerEvent 
to complete before it (loop) moves to next step?
2. Do I need to timer.stop() inside of TimerEvent handler to make sure 
Flex processes that handler in a whole? What I mean is if a timer 
interval is very small and handler processing takes longer then timer 
interval then timer might interrupt it before it is complete.

Thanks for help.

 

Reply via email to