Another option is to delay the call to the method, which does the main work.

Cheers
Ralf.

On Tue, Aug 5, 2008 at 9:56 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> 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 <[EMAIL PROTECTED]>
> 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.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
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
> 

Reply via email to