at Error$/throwError()
at flash.filesystem::File/openWithDefaultApplication()
總是出現調用程序錯誤,配置了<supportedProfiles>desktop extendedDesktop</supportedProfiles>,<supportedProfiles>desktop</supportedProfiles>,都不行,原來,必須把extendedDesktop配置在第一位。
supportedProfiles 元素可以包括以下任何值:
-
desktop — desktop 是安裝在使用 AIR 文件的 desktop 計算機上的 AIR 應用程序的配置文件。這些應用程序無權訪問 NativeProcess 類(提供與本機應用程序的通信)。
-
extendedDesktop — 擴展的桌面配置文件是安裝在使用本機應用程序安裝程序的桌面計算機上的 AIR 應用程序的配置文件。這些應用程序可以訪問 NativeProcess 類(提供與本機應用程序的通信)。
-
mobileDevice — 移動設備配置文件用於移動應用程序。
-
extendedMobileDevice — 擴展的移動設備配置文件當前未被使用。
supportedProfiles 屬性是可選的。當應用程序描述符文件中不包括此元素時,應用程序可以針對任何配置文件進行編譯和部署。
要指定多個配置文件,請使用空格字符將配置文件彼此隔開。例如,以下設置指定此應用程序僅適用於桌面配置文件和擴展配置文件:
<supportedProfiles>desktop extendedDesktop</supportedProfiles>
示例
<supportedProfiles>desktop mobileDevice</supportedProfiles>