Hi to all
Can anybody tell me what is wrong. I am trying to download files

import flash.net.FileReference;
var fileRef:FileReference = new FileReference();
var isDownload=false;

function downloadMP3(myFile,myName){
var listener:Object = new Object();

listener.onProgress = function(file:FileReference, bytesLoaded:Number,
bytesTotal:Number):Void {
  _parent.status_box.status.htmlText=myName+": "+"Progress with
bytesLoaded: " + bytesLoaded + " bytesTotal: " + bytesTotal;
}

fileRef.addListener(listener);
fileRef.download(myFile)
}

When I test on my pc files download well. When I move it to the
server dialog box opens but file does not download and listener does not
have any events. Can I solve this problem if mp3 is not on my server? Or I
must move them all at my server.
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to