Download dynamically loaded jpg

Is there a code to download a dynamically loaded jpg? like in ‘Save As’ Coz of many questions from a flash gallery to download the jpg’s!

this is the code i use:

stop();
call(“400”);
loadMovie(folder+“1.jpg”, “thumb1”);
allthumbs.thumbbutt1.onPress = function() {
if (whichPic<250 && !fadeIn && !fadeOut) {
fadeOut = false;
whichpic = 1;
input = whichPic;
}
loadMovie(folder+“1.jpg”, “square”);
};

somewhere there should be a button to download this loaded jpg in a new html window.