package{ import flash.display.Sprite; import flash.net.*; public class Main extends Sprite{ public function Main(){
var fileReference:FileReference = new FileReference( ); var urlRequest:URLRequest = new URLRequest("example.txt"); fileReference.download(urlRequest); } } }
Related Scripts with Example Source Code in same category :