Downloading large files with flash

Hello-

I’m having a couple of small issues with downloading files. On a particular page in my web site I have large audio files (greater than 100 mb) that are available for download. The page is also a flash doucument. The first problem is that the files over 100 mb (which is all of them) don’t actually get saved to your hard disc, while smaller files (like pictures) download without any issues. In HTML you would just right-click a button and that would start the process. Does anyone have a solution for this?

The second problem is less important. It has to do with showing the web surfer the progress of the download. Even though I’m using an eventlistener for the progress…no prompt is shown that specifies the progress.

Any help would be greatly appreciated.

Here’s the code I’ve been using-



import flash.net.FileReference;

listener.onSelect = function(file:FileReference):Void {
    trace("onSelect: " + file.name);
}

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 {
    trace("onProgress with bytesLoaded: " + bytesLoaded + " bytesTotal: " + bytesTotal);
}

listener.onComplete = function(file:FileReference):Void {
    trace("onComplete: " + file.name);
}

listener.onIOError = function(file:FileReference):Void {
    trace("onIOError: " + file.name);
}

var fileRef:FileReference = new FileReference();
var url:String = "http://www.trance-state.com/Downloads_files/DJTrinity-Faith-WWW.Trance-state.Com.mp3";
DL_Btn.onPress=function(){
fileRef.download(url, "DJ Trinity - Faith (www.trance-state.com).mp3");
}