Flex - 如何在本地机器的文件系统上浏览和获取文件的完整路径? [英] Flex - How to browse and get the full path of a file on local machine's file system?

查看:163
本文介绍了Flex - 如何在本地机器的文件系统上浏览和获取文件的完整路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Flex,Flash,Action Script,并且想要使用操作系统的文件浏览窗口来浏览本地机器文件系统,然后选择一个文件,然后我想获得所选文件的完整路径。我怎样才能做到这一点?请给我一些代码。



在此先感谢!

解决方案

在Flash Player 10中,您可以使用 FileReference 来获取文件名称或加载本地文件系统上的文件的数据,但是有意限制获取完整文件路径和许多其他操作AIR的 File FileStream 类。


I am working with Flex, Flash, Action Script and I want to browse the local machine file system using Operating System's file browse window and select a file then i want to get the full path of the selected file. How can I do this? Please give me some code.

Thanks in advance!

解决方案

In Flash Player 10, you can use a FileReference to get the name or load the data of a file on the local filesystem, but are purposely restricted from getting the full file path and many other operations available with AIR's File and FileStream classes.

这篇关于Flex - 如何在本地机器的文件系统上浏览和获取文件的完整路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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