使用Flash /柔性下载/保存/写在客户端的硬盘上的文件 [英] Download/Save/Write a file on the client's hard disk using flash/flex

查看:135
本文介绍了使用Flash /柔性下载/保存/写在客户端的硬盘上的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道我怎么可以下载/保存/写距离我的服务器文件到客户端的计算机使用闪光灯或弯曲。

  

我要找的一个例子是   即时拍摄的    http://www.flexdownloads.com

     
      
  1. 注册
  2.   
  3. 登录
  4.   
  5. 点击上(FREE)按钮放置在页面的右侧。 (中   橙色按钮)
  6.   
  7. 选择任何产品(不会花费你任何东西)
  8.   
  9. preSS立即购买
  10.   
     

然后你会看到一个确认弹出   对于下载,然后你选择   在那里你要保存的文件,   与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

  1. Sign up
  2. Sign in
  3. Click on the ("FREE") button placed on the right of the page. (the orange button)
  4. Choose any product (won't cost you anything)
  5. 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屋!

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