Alright, then that means we cannot use Timer from within the loop?
What if you are looping thru some dynamic component creation and a 
loop should wait for something to happen before it proceeds to next 
step?

--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> 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: [email protected] 
[mailto:[EMAIL PROTECTED] On
> Behalf Of markgoldin_2000
> Sent: Tuesday, April 22, 2008 8:22 PM
> To: [email protected]
> 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