闪动作访问文件系统没有空气? [英] flash actionscript access filesystem without air?

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

问题描述

有任何解决方法,让ActionScript3的写​​入到文件系统,而Adobe AIR的?

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

的原因是因为,在为了使用土坯空气中,每个网络访问者的需要安装附加空气运行时,这是繁琐的。大部分的用户都会有Flash插件,而不是Adobe 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类,特别是<一个href="http://help.adobe.com/en%5FUS/AS3LCR/Flash%5F10.0/flash/net/FileReference.html#save%28%29">save方法。

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

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

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