# FileReference.download headache

**URL:** <https://forum.kirupa.com/t/filereference-download-headache/243573>\
**Category:** flash\
**Created:** [November 8, 2007, 3:01pm UTC](https://forum.kirupa.com/t/filereference-download-headache/243573 "2007-11-08T15:01:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dokratos](https://avatars.discourse-cdn.com/v4/letter/d/4da419/32.png) [@Dokratos](https://forum.kirupa.com/u/Dokratos)\
**Post date:** [November 8, 2007, 3:01pm UTC](https://forum.kirupa.com/t/filereference-download-headache/243573/1 "2007-11-08T15:01:53Z")

</div>

Hey everyone!  
Been trying to get a site to download a file using FileReference. I get the download window and all but it just won’t download anything at all. Now I know a lot of people have asked this before but seems no one ever got a half decent reply that would actually help to resolve this issues. So I hurge those who know how this works to post replies and give all those of us “newbies” a chance to learn and stop bothering you with the same stuff over and over.

Anyway, here’s my AS as it is at the moment:

```auto

import flash.net.FileReference;
_root.container.contentMain.DL01.onRelease = function() {
var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
var [url:String](http://www.kirupa.com/forum/String) = 
"http://www.newopenart.com/teste01/Compositions/Arabesque1.igp";
if(!fileRef.download(url, "Arabesque1.igp")) {
    trace("dialog box failed to open.");
}

```

Hope anyone will help. Thank you for any replies!🍺
