Hi Amy

Afaik this is not possible in Flashplayer. A block of code is always
running through without any interuption. Colin Moock has a good
chapter of how all this works in his nice AS3 book.

Cheers
Ralf.



On Tue, Dec 9, 2008 at 3:44 PM, Amy <[EMAIL PROTECTED]> wrote:

> I actually had this very thing happen in my code a couple of weeks
> ago. I normally expect that the code in a function will all run as a
> block unless, of course, I'm calling out to another function. But in
> one case, one of the statements I was using (addEventListener, I
> think), opened up enough of a timing "hole" in my code that some
> other code (not the function that was being added in the event
> listener, which might have been partially understandable) ran
> unexpectedly at that point. The only solution I found was to make
> sure I put all of the other code that _had_ to run in that block
> before anything else happened above the addEventListener code.
>
> -Amy

Reply via email to