[osflash] Question: is there a way to hold code execution in AS2.0 or/and AS3.0

Dan Shryock dan.shryock at gmail.com
Thu Apr 6 12:18:05 EDT 2006


To my knowledge, neither flash, nor javascript can do this because despite
the basic setTimeout style systems, neither is actually threaded allowing
you to block the execution of one thread while another (the dialog thread)
executes.  This can only be achieved in javascript using apecial methods
(alert, confirm, etc...) that use features of the browser itself to deal
with the situation (notice that there is very little room to customize these
dialogs, and that you cannot create your own completely new dialog that
functions differently).  Usually the only way to get arround this situation
is to allow execution to complete, and deal with the results of the dialog
in a callback.  Hope this helps.

Dan

On 4/6/06, Iuliu Burtoiu <iuliu at teamcode.net> wrote:
>
> Hi list,
>
> Does anyone know how to hold code execution while waiting for a dialog Box
> response? (same as in JavaScript)
>
> Thanks,
> Iuliu
>
>
>
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20060406/8d24ce28/attachment.htm


More information about the osflash mailing list