I just created a xml editor in Flex that works perfectly, but i’m having trouble with save option. In fact he’s saving quite well, the problem is that it is displaying a dialog box for saving the document, and i want to save and replace the file automatically when i click the save button without displaying the dialog box.
Can anyone help me with this?
NOTE: I am using the FileReference class to use the method Save(), i read somewhere on the internet that FileStream class can be used for this, but i don’t know how…
Well, anyway…
Thank you.
FileStream class is only available when developing an AIR application. The code would be something along this:
There is no way to save a file into the filesystem without users permission in web player.