You need to use NativeProcessone that is only available in AIR 2.0 +
This should do the trick:
if(NativeProcess.isSupported)
{
var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
var mp:File = new File();
mp = mp.resolvePath('native\path\to\mediaplayer.exe');
nativeProcessStartupInfo.executable = mp;
var args:Vector.<String> = new Vector.<String>();
args.push('mySong.mp3');
nativeProcessStartupInfo.arguments = args;
var process:NativeProcess = new NativeProcess();
process.start(nativeProcessStartupInfo);
}
Also make sure your app.xml contains the following:
<supportedProfiles>extendedDesktop</supportedProfiles>
source
share