Reading and Writing Local Files in Flash Player 10
Posted by admin on October 22nd, 2008
Flash player prior to version 10 was unable to directly read and write data/files from and to the local drives. We could browse for files, upload/download them, but only by using server side script(we are talking about flex applications, not AIR ones). Adobe just made our life a little bit easier, by adding the load() and save() methods to the FileReference class.
Points to keep in mind:
- the location files are not exposed to ActionScript
- we can call the load() and save() APIs only on user action(such as a mouse click)
- The APIs are asynchronous (non-blocking)
You can read more about this on Mike Chambers blog, there are also sample applications to review.