Probably something really basic, but I am having trouble with delays
updating some text on screen.
Basically I want to display a message on screen to tell the user to wait
whilst a save operation takes place and after the save operation change the
text message back to blank. However I am not seeing this update. Here is the
code
savingMessage.text = "Saving. Please wait...";
_dataManager.createStudentDataXMLFile();
savingMessage.text = "";
Please note the createStudentDataXMLFile function takes about 10 seconds to
complete so in theory the "Saving. Please wait..." message should appear for
this time. If I put an alert in before the calling of the
"createStudentDataXMLFile" function, then the text updates correctly.
I have also experienced similar problems trying to get a "busy cursor to
appear" using the cursor manager and a call such as
CursorManager.setBusyCursor();
Again, the problem here is the cursor is not updating as soon as I call the
function.
Anyone any ideas why these things are not updating on screen immediately?
Thanks
Paul
p.s I am using Flex Builder and packaging in Zinc 2.5