# Browser issue using filereference!

**URL:** <https://forum.kirupa.com/t/browser-issue-using-filereference/220283>\
**Category:** Uncategorized\
**Created:** [March 24, 2007, 6:28pm UTC](https://forum.kirupa.com/t/browser-issue-using-filereference/220283 "2007-03-24T18:28:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyandi\_man](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@cyandi\_man](https://forum.kirupa.com/u/cyandi_man)\
**Post date:** [March 24, 2007, 6:28pm UTC](https://forum.kirupa.com/t/browser-issue-using-filereference/220283/1 "2007-03-24T18:28:52Z")

</div>

I am using the fileReference class for a downloads page of a site.

the problem is that it works flawlessly when using IE 7 - but it does not seem to download  
in firefox or older versions of IE 7 …

Is this a known issue?  
if so how do i correct it?  
the code i am using currently on the download button is as follows:

```auto
 
 
on(release){
import flash.net.FileReference;
var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void {
    trace("onSelect: " + file.name);
 _root.dload_mov.gotoAndPlay(2);
}
listener.onCancel = function(file:FileReference):Void {
    trace("onCancel");
 
}
listener.onOpen = function(file:FileReference):Void {
    trace("onOpen: " + file.name);
}
listener.onProgress = function(file:FileReference, bytesLoaded:Number, bytesTotal:Number):Void {
    _root.dload_mov.dload.text=("bytesLoaded: " + bytesLoaded + " bytesTotal: " + bytesTotal);
}
listener.onComplete = function(file:FileReference):Void {
    trace("onComplete: " + file.name);
 _root.dload_mov.gotoAndPlay(1);
}
listener.onIOError = function(file:FileReference):Void {
    trace("onIOError: " + file.name);
}
var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
var [url:String = "http://www.djlba.com/LBA](http://www.kirupa.com/forum/String) vol6.mp3";
if(!fileRef.download(url, "LBA Vol6.mp3")) {
    trace("dialog box failed to open.");
}
}

```

help please!
