开发者

Get Windows Documents Folder Path with Actionscript

I am an absolute beginner when it comes to ActionScript and Flash.

I am really a .NET developer.

I have been asked to modify a flash application that runs on Windows.

Currently it uses hard coded paths. My customer wants it to use the windows document folder for the current user.

Does ActionScript have a method to get t开发者_C百科he documents folder path?

Thanks.


You can't do this in Flash. When run locally flash has very restricted access. Basically just enough to get some external resources. How ever the AIR runtime was designed to provide more access to the underlying OS. What you need is flash.filesystem::File.userDirectory.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜