有人可以说如何重启吗?
我找到了这个样本并尝试为我调整它:
var appLauncher:File;
appLauncher = new File(File.applicationDirectory.nativePath).parent.parent.resolvePath("Contents").resolvePath("MacOS").resolvePath("FlashApp");
var npInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo;
npInfo.executable = appLauncher;
var _args:Vector.<String> = new Vector.<String>;
npInfo.arguments = _args;
var np:NativeProcess = new NativeProcess;
np.start(npInfo);
np.exit();
但是我不明白它应该如何工作..现在,当这个函数调用我的一个类时,没有任何事情发生。
答案 0 :(得分:1)
你用ADL试了吗?或者使用实际打包/安装的应用程序?
它与包的结构有关。 如果您尝试使用ADL,它可能无法正常工作。
此外,
exit();
的{{1}},而不是NativeApplication