flash - Actionscript block until request completes -


i want make synchronous request server. want entire program stop processing until request complete , server has responded; proper way of doing this?

you don't want entire program stop processing until server responds, because runs risk swf trigger "script has executed 15 seconds" modal dialog warning appear in front of user, @ point might consider action lost cause. considered "crash" , "not idea."

what you're trying accomplish believe halting execution (including rendering) achieve?

if really want make application non-responsive user activity during request, might able away setting mousechildren = mouseenabled = false on application's root movieclip. if need stop timeline animations, you'll have come way globally find / stop them yourself. obviously, enter_frame events you're listening for, or timers you're running should stop when make request.

you might able away setting swf's framerate 0fps in code (it won't stop timers, stop enter_frames), if writing 3rd party module make consumers of swf angry.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -