views:

625

answers:

1

Hello

I use HTTPService in my Flex application. I load several xml each about 1mb. Somethimes I need to stop loading previos xml and start to loading new one. If I use HTTPService.cancel(); or HTTPService.disconnect() - it increase the time to get the answer from the server.

Is there a quick way to stop the previos loading in HTTPService and start new one?

Thanks Vladimir

A: 

What's the reasoning for using one HTTPService request object to load several XML Documents? It seems to me that using multiple HTTPService objects would be the better solution as they make their requests asynchronously.

If the order they are loaded matters, then you may need to build some kind of queueing mechanism or chain the requests so they happen in the correct order without having to cancel the pending request...

Justin Niessner