i'm newbie, so please help me...
package com.func {
public class Downloader {
import flash.net.FileReference;
import flash.net.URLRequest;
private var req:URLRequest = new URLRequest();
private var fr:FileReference = new FileReference();
public function Downloader(){
}
public function download():void{
req.url = "http://www.yourdomain.com/example.txt";
fr.download(req);
}
}
}
I have a fw questions: 1. how to save downloaded file automatically in file system directory (ex: applicationDirectory as default), without open browse dialog to save the file. 2. how to open that files after download complete into a textarea without save the file to filesystem first.... thaks....