Yeah try to break up large for-loops. Use
Application.application.callLater() to call a method, that will give
the UI time to update before calling the method.

For example you could like loop through 1000 items and use the
callLater method every 100 items to update the UI.

gr
marcel


--- In flexcoders@yahoogroups.com, "Gregor Kiddie" <[EMAIL PROTECTED]> wrote:
>
> The only real solution for this (as I'm sure you've discovered) is to
> try and separate the work up into chunks, allowing the UI to be updated
> in between these chunks.
> 
> Until we get multiple threading, you have to limit the amount of work
> you are doing at any one time if you want the UI to keep up.
> 
> Gk.
> 
> Gregor Kiddie
> Senior Developer
> INPS
> 
> Tel:       01382 564343
> 
> Registered address: The Bread Factory, 1a Broughton Street, London SW8
> 3QJ
> 
> Registered Number: 1788577
> 
> Registered in the UK
> 
> Visit our Internet Web site at www.inps.co.uk
> <blocked::http://www.inps.co.uk/> 
> 
> The information in this internet email is confidential and is intended
> solely for the addressee. Access, copying or re-use of information in it
> by anyone else is not authorised. Any views or opinions presented are
> solely those of the author and do not necessarily represent those of
> INPS or any of its affiliates. If you are not the intended recipient
> please contact [EMAIL PROTECTED]
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of verma.java
> Sent: 08 August 2008 06:40
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Force UI update during intense AS work
> 
>  
> 
> Hello All,
> 
> I am Ashish. I am working in Adobe Flex & AIR from last six months 
> only. I have a problem that anyone will have been faced in flex/air of 
> updaing UI during the intense AS work before. Actually I am reading the 
> OS File System and making a XML file that would work as data provider 
> for a Tree control which will render in AdvancedGrid. I am able to read 
> each and every node but thing is that UI is not updating during 
> scanning; the same problem like i read in this post (http://www.mail-
> archive.com/flexcoders@yahoogroups.com
> <mailto:archive.com%2Fflexcoders%40yahoogroups.com> /msg06477.html) and
> also approach 
> for solution, but i am unable to implement it. 
> 
> Could anyone please guide me in this situation? if anyone have any code 
> regarding that would be more appriciated. 
> 
> Looking for forward response.
> 
> Best Regards,
> Ashish Verma
>


Reply via email to