使用Flash /柔性下载/保存/写在客户端的硬盘上的文件 [英] Download/Save/Write a file on the client's hard disk using flash/flex
问题描述
我不知道我怎么可以下载/保存/写距离我的服务器文件到客户端的计算机使用闪光灯或弯曲。
我要找的一个例子是 即时拍摄的 http://www.flexdownloads.com
- 注册
- 登录
- 点击上(FREE)按钮放置在页面的右侧。 (中 橙色按钮)
- 选择任何产品(不会花费你任何东西)
- preSS立即购买
然后你会看到一个确认弹出 对于下载,然后你选择 在那里你要保存的文件, 与Flash影片保存文件!
使用的FileReference
<一个href="http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_communications_7.html" rel="nofollow">http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_communications_7.html
VAR要求:的URLRequest =新的URLRequest(INDEX.XML);
VAR fileRef:的FileReference =新的FileReference();
fileRef.download(要求);
I wonder how can I download/save/write a file from my server to a client's computer using flash or flex.
An example of what I'm looking for is avilable on http://www.flexdownloads.com
- Sign up
- Sign in
- Click on the ("FREE") button placed on the right of the page. (the orange button)
- Choose any product (won't cost you anything)
- Press "BUY NOW"
then you'll see a confirmation popup for the download, then you choose where do you want to save the file, and the flash movie saves the file!
Use FileReference
http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_communications_7.html
var request:URLRequest = new URLRequest("index.xml");
var fileRef:FileReference = new FileReference();
fileRef.download(request);
这篇关于使用Flash /柔性下载/保存/写在客户端的硬盘上的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!