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

    重启。

  • 相关阅读:
    编程之道——高内聚低耦合
    虚拟机的安装
    Tomcat的安装与配置
    Spring(十)--Advisor顾问
    Spring(九)--通知
    Spring(八)-- 代理设计模式
    Spring(七)--Spring JDBC
    Spring(六)--Spring配置文件之间的关系
    Spring(五)--autowire自动装配和spel
    Spring(四)--bean的属性赋值
  • 原文地址:https://www.cnblogs.com/ShepherdIsland/p/AIR_Error_2014_File_initDocumentsDir.html
Copyright © 2011-2022 走看看