且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从Flex Web应用程序保存本地计算机上的文件

更新时间:2022-12-23 21:01:18

出于安全原因,在线应用程序无法访问用户的硬盘。这就是为什么添加了另存为功能。它允许用户选择保存文件。


is there a way to save, not save as, from an online flex app onto someone's local machine? Basically, if a user opens a file local to their machine in an online flex app, is there a way to allow them to save it locally without going through dialog boxes and picking file names?

Note: I've read that this is possible on Air, but seems unlikely in Flex - my hope is that some workaround may exist...

thx!

f

No. For security reasons, the online application does not have access to the user's harddrive. This is why the "save as" functionality has been added. It allows the user to choose to save a file.