zoukankan      html  css  js  c++  java
  • Error: Error #2014: Feature is not available at this time. at flash.filesystem::File$/initDocumentsDir()

    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_USERSoftwareMicrosoftWindowsCurrentVersionExplorerUser Shell Folders
    Personal=%USERPROFILE%Documents
    Favorites=%USERPROFILE%Favorites
    My Music=%USERPROFILE%Music

    HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerShell Folders
    Personal=C:UsersAdministratorsDocuments
    Favorites=C:UsersAdministratorsFavorites
    My Music=C:UsersAdministratorsMusic

    重启。

  • 相关阅读:
    M1阶段的开发过程的一些反思
    Alpha版本发布说明
    Alpha版本BUG BASH
    Notes of Daily Scrum Meeting(11.19)
    Notes of Daily Scrum Meeting(11.17)
    Notes of Daily Scrum Meeting(11.15)
    Notes of Daily Scrum Meeting(11.14)
    flask_sqlalchemy介绍
    SQLAlchemy 简单笔记
    Python-3.6 安装pycrypto 2.6
  • 原文地址:https://www.cnblogs.com/ShepherdIsland/p/AIR_Error_2014_File_initDocumentsDir.html
Copyright © 2011-2022 走看看