Hi,
This is a single thread problem. The problem is you are parsing data that is
taking that single thread the Flash Player uses to do all of it's work.

The solution is to batch your xml parsing into a timer queue of sorts,
dispatch an event to the progress bar updating the batch total to completed.
Then your screen will not lock up either.

I have done this with quite a bit of things, batching definitely works. You
as the developer need to figure out how to abstract the parsing into chunks.

Mike

On Thu, Oct 9, 2008 at 5:30 PM, johnsonpaul1014
<[EMAIL PROTECTED]>wrote:

>   A project I am working on is using HTTPService to retrieve a large XML
> data set, parse it using e4x and display the data in charts. Since it
> is taking quite a bit of time to process the data, I decided to add a
> progress bar. The problem is the screen is not refreshing until all
> the data has been loaded and prepared for the charts. In fact, I
> tried using an indeterminate progress bar temporarily, and as soon as
> the result handler for HTTPService gets called, the animation on the
> bar stops until all the code executes and the charts are displayed.
> Please help.
>
>  
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.

Reply via email to