I have a function in my flex app that produces a pdf. Producing the pdf can take a few seconds, I'd like to display a popup for the user to let them know they need to wait, so at the top of my function I use CursorManager and PopUpManager to inform the user, but the dialog is never displayed because control never passes back to the ui.
In VB, this problem is easily worked around by a call to "DoEvents".
How do I work around this problem in actionscript?
dlgPleaseWait = PopUpManager.createPopUp(this, PleaseWait, true) as PleaseWait;