To be more specific, the AS execution model is single threaded. There is no api for making or synchin threads. The player itself has threads, and uses asynch i/o from the os, but everything is eventually handled in order by the single AS thread
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Dale Sent: Monday, October 01, 2007 8:16 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Freeze Flex Application Hmm ... flash is single threaded? How do the asynchronous events and event_listeners work in a single thread? Is there something like interrupts? ...paul On 10/1/07, Alex Harui <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: Because Flash is a single-threaded runtime, freezing is a bad thing, you can't interact with the app at all, and eventually you'll get an timeout error. Your users will be frustrated that they can't cancel or navigate elsewhere in your app. When will it be ok to show those popups? You want to include that functionality in your observeValue callback. You can use callLater to have your callback called repeatedly until the criteria becomes true, but hopefully there's some other event that you can wait for instead. ________________________________ From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com <http://ups.com> ] On Behalf Of Kevin Sent: Sunday, September 30, 2007 8:07 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Freeze Flex Application the main problem I am having right now is that I have some popups that get created using the ObserveValue tags. I would like to be able to prevent these popups, but the problem is that once the values come back from DataServices in the background, they are being called via the ObserveValue binding... - kevin On Sep 30, 2007, at 9:39 PM, Alex Harui wrote: Therer is no one api. What do you want to prevent? ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Sent: Sunday, September 30, 2007 2:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Freeze Flex Application Is there a way to freeze a flex application so that nothing can be executed both from a UI perspective and behind the scenes? I can create a modal Alert or PopUp to block user input, but I notice that code still get's executed behind the scenes and thus anything already initiated will get completed. I would like to be able halt all processes if possible. - Kevin