我知道,从 AIR 2.0 开始,可以像这样执行应用程序 (.exe):
if(NativeProcess.isSupported)
{
var file:File = File.desktopDirectory;
file = file.resolvePath("StyleLookupold.exe");
var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
nativeProcessStartupInfo.executable = file;
var process:NativeProcess = new NativeProcess();
process.start(nativeProcessStartupInfo);
}
但是可以在系统的默认播放器中打开视频吗?例如,使用命令行参数执行 Windows Media Player 作为要播放的视频的路径?