Try savingMessage.validateNow() - it should force an update of the text area.


 --
Laurent Cozic

Flash, Flex and Web Application development
http://pogopixels.com



----- Original Message ----
From: Paul Steven <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, August 5, 2008 9:33:56 AM
Subject: RE: [SPAM]Re: [flexcoders] Delay before text is updated


Thanks for the replies.
 
My method basically creates a fairly large string and then
writes this string to disk as an xml file.
 
So are you saying, if my function takes say 10 seconds to
complete, there will be no ENTER_FRAME dispatched during this time? If so then
is there any function I can call to force an update to the screen – something 
like
updateScreen( ) ?
 
Thanks
 
Paul
 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Josh McDonald
Sent: 05 August 2008 08:56
To: [EMAIL PROTECTED] ups.com
Subject: [SPAM]Re: [flexcoders] Delay before text is updated
 
What does your method do?

Most changes made to most components (such as changing the text property) won't
be reflected on-screen until the next ENTER_FRAME is dispatched by the player
due to the way Flex works internally. If your method is simply some gigantic or
slow loop, you won't see anything until it's done- and you should probably
split it apart and schedule it in pieces :)

-Josh
On Tue, Aug 5, 2008 at 5:43 PM, Paul Steven <paul_steven@ btinternet. com>
wrote:
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. createStudentDat aXMLFile( );     
 
savingMessage. text =
"";
 
 
Please note the
createStudentDataXM LFile 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 "createStudentDataXM LFile"
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



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for
thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED] com     


      

Reply via email to