开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜