FileReference.download headache

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:


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!:beer: