flex - save downloaded file automatically in directory using AIR -


I'm a newbie, so please help me ...

  package com.func {Public Class Downloader {import.net; FILEReference; Import flash.net.URLRequest; Private var req: URLRequest = new URLRequest (); Private var fr: FileReference = new FileReference (); Public Function Downloader () {} Public Function Download (): Zero {req.url = "http://www.yourdomain.com/example.txt"; Fr.download (request); }}}  

I have an FW question: 1. How to save the downloaded file automatically in the file system directory (ex: application directory as default), < Strong> File to save without an open browse dialog. 2. How to open the file system after downloading a file without saving the file without saving it Thaks ....

The data can be downloaded from the URL one by one. You can get a string from this in the whole event handler.

The string can again be set as TextArea's text property.

You can write a file without the user, using the air orbit of conversation. The same class can also be used to read the file.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -