I have a function that restores all of the default settings of my application. This process can take a bit of time, so I would like to implement a "Please wait..." modal popup to let the user know that everything is alright and the program hasn't frozen. Once the function completes its task, I'd like for it to remove the message, and resume normal behavior.
+2
A:
You can use the PopUpManager to create a Modal PopUp with an animated spinner. The Alert component does this. You can always reference the Alert source code to see how it works.
James Ward
2010-03-16 12:56:45
In my experience this doesn't work well when rebuilding UI components. I'm assuming the asker needs to build a lot of UI or else it wouldn't be taking so long as to appear frozen. If the flash player is working hard to process a display it can't be bothered to render a custom mouse at the same time. An option I use is to change the text of the button to "please wait..." and change it back to normal after the render is complete.
invertedSpear
2010-03-16 16:25:00
I've used it when dispatching events that call the back end. It works great when you're waiting for a responder to populate the model from the database. I guess I didn't think that it would interfere with the GUI rendering.
houser2112
2010-03-16 19:46:51
A:
on start
var waitingpopup:TitleWindow = new TitleWindow() waitingpopup.title = "Please Wait ..."
PopupManager.addPopup(waitingpopup, this, true)
on complete
PopupManager.removePopup(waitingpopup)
Nishu
2010-03-16 16:30:00
A:
Like the first poster suggested, create a modal popup. Instead of a spinner animation though, just make the popup a progress bar component.
Noohi
2010-03-16 18:27:48