Hi guys ive been using flex now for about 2 years. Love flex dont have to much to complaint about it is extremely flexible however i have one simple question that i just dont quite understand and im hoping someone here can shed some light. Picture this. I have a grid and a call to a webservice. when i click on the grid item it makes a call to the webservice once the webservice returns the array of items i want to play an animation. But what i have noticed is that at the point the dataprovider is assign to the grid the application basically freezes. This is due to the fact that by assining the dataprovider to the grid flex internally is looping the colletction and passing it to the grid. Well if you are trying to play and animation while the dataprovider is being assignt the animation gets choppy... is there any techniques around this? I would really love to hear about how other people have overcomed this challenge or I'm i the only idiot thats dealing with this.
Any responses would be greatly appreciated.
If you use XML to get data from the server, then unmarshalling of data to create objects takes a heavy toll on the processor.
If you use Blaze DS or LCDS, deserialization from binary data is a breeze and it doesn't hit the processor as much.
Now, if you don't want to change your service, consider using TimeSlicing:
Good read about the Flash Player "elastic racetrack":
Thank you I appreciate that. I'll have to take a closer look at the elastic racetrack. I have used time slicing before but it is a bit tricky.
Thanks for your reply i appreciated.