Can't get URL Loader to update

Hi

I have a button on my page that when clicked allows users to save an high res version of the image they are currently viewing, I using the File Reference to achieve this and it works fine.

I need to change the path the File Ref users each time a new movie has loaded, I currently have this code


var fileRef:FileReference = new FileReference();
var thePath:String = "http://www.domain.co.uk/images/calvaApple.jpg";
var fileURL:URLRequest = new URLRequest(thePath);

saveImage_btn.addEventListener(MouseEvent.CLICK, saveFile);

function saveFile(event:Event):void {
	fileRef.download(fileURL);
}


When the buttons are clicked to load in the external images as well as loading in the images I am also setting the path to relevant image. Like this:

thePath = “http://www.domain.co.uk/images/whiteAsh.jpg”;

When I trace the path out using a test button the path traces correctly but the file ref just refuses to update and just constantly tries to save the original image.

Can any one point me in the right direction with this please.

Thanks in advance.

You can see the page here if it helps explain what I mean.
http://www.spenvalleykitchens.co.uk/products/doors/ashby.html

Ricky