Can开发者_如何学Python we Bypass the save dialog box of FileRefernce.save()?
If not, then Is there any workaround to save a file from web application in Flex without asking user where to save file?
I am using FP10.
Thanks in Advance!
you can if you use the flash.fileSystem API in an AIR application, but as far as i know it's not possible with browser-resident Flash.
if it's not, you might be able to call a JavaScript routine with flash.external.ExternalInterface that can do it for you - assuming it's possible to do what you want with JavaScript.
[edit] for security reasons, i really can't imagine that this is possible with JavaScript either.
[edit 2] the best you'll be able to do is use a SharedObject to read and write your XML data, but it's sandboxed and possible for the user to turn off or limit available space, so you'll have to be cautious.
精彩评论