[flexcoders] Screen freezes when running code in result callback function of HTTPService

2008-10-10 Thread johnsonpaul1014
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

Re: [flexcoders] Screen freezes when running code in result callback function of HTTPService

2008-10-10 Thread Michael Schmalle
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