开发者

Flex - How to browse and get the full path of a file on local machine's file system?

开发者 https://www.devze.com 2022-12-25 13:48 出处:网络
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 s

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? 开发者_如何学JAVAPlease 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.


I think its the nativePath (which gives it in the OS's representation) property on the File object.

Here is a link: http://livedocs.adobe.com/flex/3/html/help.html?content=Filesystem_03.html


I think you can access the local files of the operating system in AIR applications.Plz correct me if wrong

0

精彩评论

暂无评论...
验证码 换一张
取 消