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
.
精彩评论