I have a slideshow on a CD and the client wants me to put a button in so the user can save the images to their hard drive. I have this right now:
function loadItem(itemID) {
var large = _root.gal.firstChild.childNodes[itemID].attributes.image;
largeMCL.loadClip(large, _parent.photoHolder);
_parent.saveBtn.onRelease = function() {
var fileRef:FileReference = new FileReference();
var url:String = large;
if (!fileRef.download(url, "image.jpg")) {
trace("couldnt open box");
}
};
}
Apparently, you have to pass it an absolute url http://blahblah.com/image.jpg
I need to pass a relative URL though since its local…any ideas??