简体   繁体   中英

Bypass the save dialog box of fileReference.save

Can 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM