# Possible fileReference.download() on a CD?

**URL:** <https://forum.kirupa.com/t/possible-filereference-download-on-a-cd/241291>\
**Category:** flash\
**Created:** [October 11, 2007, 8:39pm UTC](https://forum.kirupa.com/t/possible-filereference-download-on-a-cd/241291 "2007-10-11T20:39:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)\
**Post date:** [October 11, 2007, 8:39pm UTC](https://forum.kirupa.com/t/possible-filereference-download-on-a-cd/241291/1 "2007-10-11T20:39:09Z")

</div>

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:

```php

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](http://blahblah.com/image.jpg)

I need to pass a relative URL though since its local…any ideas??
