Flash actionscript 无需空气即可访问文件系统? [英] flash actionscript access filesystem without air?

查看:29
本文介绍了Flash actionscript 无需空气即可访问文件系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何解决方法可以让 actionscript3 在没有 adobe air 的情况下写入文件系统?

Is there any workaround to allow actionscript3 write to file system without adobe air?

原因是,为了使用 adobe air,每个网络访问者都需要安装附加的 air run-time,这很乏味.大多数用户将使用 Flash 插件而不是 Adob​​e Air.

The reason is because, in order to use adobe air, each of the web visitors will need to install add-on air run-time and that is tedious. Most of the users will have flash plug-in and not Adobe Air.

推荐答案

这在 Flash 10 中是可能的.

This is possible in Flash 10.

查看 FileReference 类,特别是 保存 方法.

Take a look at the FileReference class, specifically the save method.

当然,为了安全起见,有一些限制.写入只能通过用户交互(例如单击按钮)启动,并且会始终弹出主机操作系统的文件保存对话框,提示用户选择位置(或取消).

There are certain limitations imposed for security's sake, of course. The write can only be initiated by user interaction (e.g. a button click), and it will always pop up the host OS's File Save dialog box prompting the user to choose a location (or cancel).

这篇关于Flash actionscript 无需空气即可访问文件系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆