Stopping a loader while it is in the process of loading?

Hello to you all and thanks for your time. My problem goes something like this. I am creating an application for a website selling cars and I have used a loader to automatically load in the car pictures from an xml file. However when I test the application by simulating a download, what happens is that the pictures of the car loads as expected however if the user selects another car while the loader is in the process of loading and initiates another load function the loader still continues to load the previous car until it is complete, then it loads the one the user selects. Can anyone tell me a way around this problem I want to stop the loading of the picture whenever the user selects another model. I’ve tried loader.unload and that doesnt seem to work so please if anyone can help me please do all comments and suggestions are accepted.
Again thanks for your time.