牧羊岛

懒是不会有好果子吃滴//

导航

Error: Error #2014: Feature is not available at this time.
  at flash.filesystem::File$/initDocumentsDir()
  at flash.filesystem::File$/get documentsDirectoryPath()
  at flash.filesystem::File$/get documentsDirectory()

代码:

model.status.lastFileBrowseFolderPath = File.documentsDirectory.nativePath;
model.status.lastFileSaveFolderPath = File.documentsDirectory.nativePath;

网上查到了这样的资料:http://forums.adobe.com/thread/914874

大概的意思就是我的文档指向了某个驱动器的映射然后断开的驱动器。一开始以为是文件夹权限不足,结果一看用户目录下连Documents文件夹都没有。

运行regedit,查注册表发现文档指向了H盘,像是个U盘。于是还原所有的注册表配置。。

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
Personal=%USERPROFILE%\Documents
Favorites=%USERPROFILE%\Favorites
My Music=%USERPROFILE%\Music

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
Personal=C:\Users\Administrators\Documents
Favorites=C:\Users\Administrators\Favorites
My Music=C:\Users\Administrators\Music

重启。