I need a method to disable user interaction with the application for certain calls to a server for information. I’ve been using the following code to disable/enable the application before/after the server call. Basically, it gives the user a busy cursor and disables the application while the call is being processed on the server.
When the call from the server is submitted, I execute:
CursorManager.setBusyCursor();
mx.core.FlexGlobals.topLevelApplication.enabled=false;
When the call from the server returns, I execute:
CursorManager.removeBusyCursor();
mx.core.FlexGlobals.topLevelApplication.enabled=true;
This has the problem that the application color dims. Is there a way to prevent it from dimming? Alternatively, can I disable the mouse click and keyboard somehow? Or, what do other people do in this situation?
Try: