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?
You should check your log for SecurityError
s. A sandbox violation is nearly always the cause when IO works locally but not online.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With