I am trying to write a local file with Flash Player 10+ using the FileReference class, following the format from this blog post by Mike Chambers: http://www.mikechambers.com/blog/2008/08/20/reading-and-writing-local-files-in-flash-player-10/
Essentially the code is this:
private function onSaveButtonClick(event:MouseEvent):void{
fr = new FileReference();
fr.save(fileToSave);}
It works fine locally on my machine but when used online, it doesn't bring up the save file dialogue when the save button is clicked. I assume this is some sort of permissions or security related issue?
fileToSave
? DoonFileSave
,onCancel
oronSaveError
trace anything – Northward