It is not possible to pause all application execution, as in PHP, but there are workarounds (if you do not set a breakpoint or create a runtime error, do not think what you meant). This is probably due to the fact that usually flash applications are designed to run all scenarios in less than one โframeโ.
Typically, you can โpauseโ the animation of a website when the user focuses it. This can be done by listening to Event.DEACTIVATE, and then delete the ENTER_FRAME listeners and kill all current processes.
You can also create a central EventDispatcher to replace the internal ENTER_FRAME, so you can easily control the speed of execution, as well as pause / resume (do not stop scripts, as well as asynchronous handlers such as loaders, etc.).
Theo.t
source share